zsh-fzf-history-search
zsh-fzf-history-search copied to clipboard
invalid directive when trying to fetch commands with %T and similar strings
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