Re: Fink and 'sh'
Re: Fink and 'sh'
- Subject: Re: Fink and 'sh'
- From: Graff <email@hidden>
- Date: Tue, 23 Mar 2004 13:56:09 -0500
On Mar 23, 2004, at 11:45 AM, Doug McNutt wrote:
At 09:40 -0500 3/23/04, Graff wrote:
Well, it's calling /bin/sh but of course on Mac OS X sh is just a
copy of bash that is running in sh-compatability mode.
Not that it makes much difference but I'm fairly sure that the default
was changed to bash - not sh - sometime near the beginning of the
Jaguar era.
You are right it doesn't make much difference at all, either way sh and
bash are just about the same thing under Mac OS X 10.2 and later. The
reason I said that it called /bin/sh is because that's what Apple has
said it does:
---------
<
http://developer.apple.com/technotes/tn2002/tn2065.html#Section6>
Q: What shell does do shell script use, really?
A: do shell script always calls /bin/sh. However, in Mac OS X, /bin/sh
is really a copy of another shell that emulates sh. In 10.2 and later,
this is bash; prior to that it was zsh.
---------
This might only come up if there was a bash-specific initialization
script that didn't get called because /bin/sh was called instead of
/bin/bash. I don't even know if there is such a script that would come
up under AppleScript's "do shell script" command, but it's always worth
keeping in mind just in case.
-Ken
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.