Edmund R. MacKenty wrote:
On Thursday 29 May 2008 14:57, McKown, John wrote:
I thought that I could get this from $0. But in my tests, if the script
is on the PATH and I invoke it just with its name, I get just its name
in return. ...
This is always a tricky problem, because various shells do it differently.
Specifying bash,
#!/bin/bash
should get the required behaviour.
--
Cheers
John
-- spambait
[EMAIL PROTECTED] [EMAIL PROTECTED]
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375
You cannot reply off-list:-)
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390