Re: Wait Until Process Completion
Re: Wait Until Process Completion
- Subject: Re: Wait Until Process Completion
- From: Axel Luttgens <email@hidden>
- Date: Tue, 13 May 2008 13:37:28 +0200
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