zsh-fzf-history-search icon indicating copy to clipboard operation
zsh-fzf-history-search copied to clipboard

invalid directive when trying to fetch commands with %T and similar strings

Open nitayk opened this issue 1 year ago • 0 comments

This issue started when I moved to a new computer (MacBook Pro Apple M2). When trying to fetch from the history command like: kcat -b broker -t topic -C -Z -o beginning -f ' %k:%s\n' I get the following error: fzf_history_search:printf:35: %k: invalid directive and only left with part of the string in the terminal line: kcat -b broker -t topic -C -Z -o beginning -f '

The reason is that printf interprets the %k as a format specifier.

I am not sure why it only started now when I switched to a new computer, but though it will be a good idea to post about it here

Thanks

nitayk avatar Jan 03 '24 12:01 nitayk