Re: Wait Until Process Completion
Re: Wait Until Process Completion
- Subject: Re: Wait Until Process Completion
- From: "Mark J. Reed" <email@hidden>
- Date: Tue, 13 May 2008 07:46:14 -0400
Frak. Shell customization strikes again. Someday ii'll remember to
try stuff in a new user acct before crying bug...
On 5/13/08, Axel Luttgens <email@hidden> wrote:
>
> Le 13 mai 08 à 13:29, Mark J. Reed a écrit :
>
> > On Tue, May 13, 2008 at 6:02 AM, Christopher Nebel
> > <email@hidden> wrote:
> >> Actually, "do shell script" has always propagated errors like
> >> that. The
> >> difference is that ps(1) in Leopard returns a status of 1 if you
> >> use -p with
> >> a non-existent pid, where it returned 0 in Tiger.
> >
> > Interesting. I thought that ps(1) had always returned 1 when asked to
> > display a nonexistent PID; then again, my experience is primarily with
> > SysV-derived systems.
> >
> > Without specific knowledge to the contrary, I would assume that any
> > command that lets you say "show me information about this particular
> > X" would exit with nonzero status, usually 1, if that particular X
> > doesn't exist. But I see that still on Leopard, that's not even true
> > of ls(1)!
> >
> > (0)wazowski:~/Desktop> ls asdf
> > ls: asdf: No such file or directory
> > (0)wazowski:~/Desktop>
> >
> > That (0) in my command prompt is the exit status of the last
> > command... compare with the results on a Linux system:
> >
> > (0)box28:~> ls asdf
> > /bin/ls: asdf: No such file or directory
> > (1)box28:~>
> >
> > I go file a bug onw.
>
> Hello Mark,
>
> Before you file a bug, this is what I get here under 10.5.2, with bash
> as shell:
>
> luttgens$ ls adsf; echo $?
> ls: adsf: No such file or directory
> 1
> luttgens$
>
> Do our boxes somehow differ?
>
> Axel
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>
--
Sent from Gmail for mobile | mobile.google.com
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden