Re: bash now default shell in 10.2; and reading files
Re: bash now default shell in 10.2; and reading files
- Subject: Re: bash now default shell in 10.2; and reading files
- From: John W Baxter <email@hidden>
- Date: Wed, 4 Sep 2002 15:07:10 -0700
At 12:36 -0700 9/3/2002, Christopher Nebel wrote:
>
On Tuesday, September 3, 2002, at 09:32 AM, Charles Arthur wrote:
>
>
> From the technote about changes in 10.2 at
>
> http://developer.apple.com/technotes/tn2002/tn2053.html
>
>
>
> * The bash command shell is now installed with Mac OS X, and has
>
> replace
>
> zsh as the default /bin/sh (r. 2809843).
>
>
>
> Any differences this will make to the actions/behaviour/results of "do
>
> shell script" or redirections from it?
>
>
Redirections, no; behavior, yes in some cases. A few people at Apple
>
had shell scripts break during the initial zsh/bash switch; if I
>
remember right the problems had to do with certain forms of variable
>
expansion. Unfortunately, I don't know the exact details, but
>
essentially, zsh didn't emulate sh quite right in a few places, while
>
bash is more faithful.
In the usual sort of installation of bash I've encountered (I haven't
looked at "our" installation), the sh shell doesn't actually exist. It is
bash called by the name sh. When started as sh, bash is intended to behave
like sh in everything that matters.
But there are probably dark little corners of difference...it would seem
that your colleagues ran into some. And extensions to variable expansion
are one of the areas one might expect the differences to lurk.
It shouldn't be necessary to make many if any changes unless one has been
pushing the envelope. If the script you run using do shell script invokes
the user's default shell as a subshell and has it execute a script, all
bets are off. (I haven't seen that one advocated here yet, and I'm not
good enough with shell after several years of driving Unix to mess with it.)
--John
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
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.