rcaloras / bash-preexec

⚡ preexec and precmd functions for Bash just like Zsh.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

$this_command is interpreted by `echo`

dseomn opened this issue · comments

A very small number of useless commands are ignored by bash-preexec, because they're passed to echo. E.g., the command line -n causes bash-preexec to run echo -n which does not print -n. The solution I've seen is to use printf '%s\n' ... instead of echo.