David Liontooth wrote:
In two windows of the same KDE konsole, I get this:

$ echo aa | strace grep [^0-9]
execve("/bin/grep", ["grep", "u"], [/* 31 vars */]) = 0
[snip]

(expanding on Andreas' answer...)
[^0-9] is being interpreted by your shell (probably bash) as a globbing sequence that matches any files whose name is a single character that is not a digit. If there are no matches, the glob is passed unaltered, otherwise it is expanded. You probably meant to write "grep '[^0-9]'" (note the single quotes!) to prevent shell expansion. It is ALWAYS good practice to properly quote arguments.

--
Matthew
Vs lbh pna ernq guvf jvgubhg fbsgjner, lbh ner n FREVBHF areq! -- Nqncgrq sebz Znggurj Jva (ivz-qri znvyvat yvfg)



Reply via email to