|
Commandline gurus lend me your ears
I just had someone call me up about something they perceive as a problem and I was not sure what to tell them. Anyways, it has to do with calling a shell on the commandline and passing it a command to execute, something like "sh ls" or "sh grep blah". Now oddly enough I did not know the following would happen:
[root@localhost root]# sh grep xmy
grep: /bin/grep: cannot execute binary file
[root@localhost root]# sh ls
ls: /bin/ls: cannot execute binary file
I tried this with bash instead of sh and got the same response. I tried it with tcsh and got the "tcsh: ls: No such file or directory" response. Anyone have a clue if this is appropriate behaviour?
Thanks for any responses.
|