Closed tfpf closed 11 months ago
Thanks for raising this. You are right, it may in fact affect any command used inside.
Maybe even an \unalias -a
at the beginning is appropriate. We'll review the script.
The \unalias -a
suggestion got me thinking: it won't touch any functions, so it may not fully address the problem? Upon some experimentation, I found that if a function grep
is defined, \grep
actually calls that function instead of running /bin/grep
. However, command grep
runs /bin/grep
.
If
is set before zypper's programmable completion script is sourced, the latter malfunctions. For instance, typing
zypper remove
and then pressing TABTAByq results in the following.A simple fix is to use
\grep
instead ofgrep
. Though this does raise the question: shouldcut
andsed
get the same treatment?Notes
command
to achieve the same effect.