strange shell behavior...thoughts?

Ed Greshko Ed.Greshko at greshko.com
Mon Sep 15 09:26:46 UTC 2008


Ed Greshko wrote:
> As in....
>
> $ grep ABCD kkk
> grep: kkk: No such file or directory
> $ ksh -c "set -xv ; grep ABCD kkk ; echo $?"
> + grep ABCD kkk
> grep: kkk: No such file or directory
> + echo 2
> 2
>   
Maybe shows it even better....

[egreshko at misty ~]$ grep KKKK b
[egreshko at misty ~]$ ksh -c "set -xv ; grep ABCD kkk ; echo $?"
+ grep ABCD kkk
grep: kkk: No such file or directory
+ echo 1
1






More information about the users mailing list