Re: Inconsistancy Between Do Shell Script and Terminal?
Re: Inconsistancy Between Do Shell Script and Terminal?
- Subject: Re: Inconsistancy Between Do Shell Script and Terminal?
- From: Doug McNutt <email@hidden>
- Date: Fri, 14 Jan 2005 18:43:39 -0700
At 21:13 -0400 1/14/05, Bill Briggs wrote:
> I note that when you boot in single user mode the shell is sh. Is it "real" sh, or is it also running bash in sh emulation mode?
If you look in /bin/ you'll find two identical executables sh and bash.
The sh copy behaves like sh should because it takes note of the file name.
It is interesting that the usual, in BSD and Linux, structure is to have bash and sh, or csh and tcsh, be hard links to the same executable but Apple does otherwise. There has been some discussion about the way Apple has hacked HFS+ to allow for hard links and they may be terribly inefficient.
Presumably using sh to shebang into bash will require loading two separate copies of the process rather than sharing the identical code in RAM. Does it matter? Perhaps to some and surely to relics of 64 kB UNIX like such as I.
--
--> There are 10 kinds of people: those who understand binary, and those who don't <--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden