Re: do shell script flaw
Re: do shell script flaw
- Subject: Re: do shell script flaw
- From: Emmanuel LEVY <email@hidden>
- Date: Sun, 6 Dec 2009 14:37:41 +0100
Sincerely, I think that programming "do shell script" was a tricky
business and using it with "top" unveals some kind of a limit.
Emmanuel
On Dec 6, 2009, at 2:05 PM, Mark J. Reed wrote:
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 (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to 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