Re: do shell script flaw
Re: do shell script flaw
- Subject: Re: do shell script flaw
- From: "Mark J. Reed" <email@hidden>
- Date: Sun, 6 Dec 2009 08:05:15 -0500
On Sun, Dec 6, 2009 at 6:47 AM, Emmanuel LEVY <email@hidden> wrote:
> Not so sure. If I run do shell script "mkdir foo/bar" (no -p) the error says
> "no such file or directory" - it's an error from the command - not "The
> command exited with a non-zero status".
Ah, I see. So it's exiting with a nonzero status without sending an
error message to stderr. In that case, without redirecting stderr to
dev null, I can't think of any way to reproduce that. It could occur
if something terminated mkdir before it completed, perhaps, but most
error conditions would yield an error message either from mkdir or
from bash.
--
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