Mark Post wrote:
On Thu, May 29, 2008 at 3:48 PM, in message
<[EMAIL PROTECTED]>,
"Fargusson.Alan" <[EMAIL PROTECTED]> wrote:
I get full pathnames when I do this. You may have a different /bin/sh then I
do. My /bin/sh is bash.
His /bin/sh may very well be a symlink to /bin/bash. When invoked as "sh" bash
reverts to an sh-compatible behavior.
The following is Scientific Linux 5, a clone of RHEL5.
07:14 [EMAIL PROTECTED] ~]$ vim bin/testpath
07:15 [EMAIL PROTECTED] ~]$ chmod +x bin/testpath
07:15 [EMAIL PROTECTED] ~]$ bin/testpath
bin/testpath
07:15 [EMAIL PROTECTED] ~]$ testpath
/home/summer/bin/testpath
07:15 [EMAIL PROTECTED] ~]$ cat bin/testpath
#!/bin/sh
echo $0
07:15 [EMAIL PROTECTED] ~]$ sh --version
GNU bash, version 3.1.17(1)-release (i686-redhat-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
07:17 [EMAIL PROTECTED] ~]$
--
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