Re: To err on the exit code of the FIRST cmd of a piped do shell script
Re: To err on the exit code of the FIRST cmd of a piped do shell script
- Subject: Re: To err on the exit code of the FIRST cmd of a piped do shell script
- From: "John W. Baxter" <email@hidden>
- Date: Tue, 09 Dec 2003 08:09:07 -0800
- Envelope-to: email@hidden
On 12/9/2003 5:11, "Harald E Brandt" <email@hidden> wrote:
>
+--
>
> See PIPESTATUS in the sh man page for details.
>
+--
>
>
But.... there is no PIPESTATUS in man sh!? At least not in the man
>
pages of Jaguar. And not in csh or tcsh either. But I found it in the
>
man page of bash!
Typically in an installation which includes bash, sh IS bash. If the code
is invoked using the name sh, it runs with certain bash incompatibilities
with sh scripting turned off, so that sh scripts work.
That is the case on my machine. (Apple seems to have two copies of the same
binary installed, one with each name...that's not typical.)
On my machine, man sh does include the PIPESTATUS command (and man sh shows
the bash man page). That should be the case with either a clean
installation of Panther (probably including Archive and Install) or a fixed
upgrade installation of Panther, in which one has gone back and installed
the BSD subsystem properly (the Panther upgrade install script doesn't
achieve that).
My machine is a fixed upgrade install of Panther (I've done only upgrade
installs since installing 10.0 on March 24, 2001).
--John
_______________________________________________
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.