The ksh man page reads: "The name of the shell (i.e. the contents of
$0) is de-termined as follows: if the -c option is used and there is a
non-option argument, it is used as the name; if commands are being
read from a file, the file is used as the name; otherwise, the
basename the shell was called with (i.e. argv[0]) is used.The observed behavior is:
[amar@zimbu ~ $] ksh -c "echo $0"
ksh
[amar@zimbu ~ $]Now, according to the above snippet from the man-page, shouldn't the
output be "echo", and not "ksh"? (echo is the non-option argument, and
-c is also being used). Or am I messing things up in my mind? Thanks
in advance for setting my train of thought straight.-Amarendra
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| James Bottomley | Re: Announce: Linux-next (Or Andrew's dream :-)) |
| David Woodhouse | Re: [PATCH 2/3] firmware: convert korg1212 driver to use firmware loader exclusively |
| Kamalesh Babulal | Re: 2.6.24-rc8-mm1 Build Failure on S390x |
git: | |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| KOSAKI Motohiro | [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
