• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: do shell script flaw
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: do shell script flaw
      • From: Emmanuel LEVY <email@hidden>
References: 
 >Re: Do shell script vs terminal discrepancy (From: Paul Skinner <email@hidden>)
 >Re: Do shell script vs terminal discrepancy (From: Simon Topliss <email@hidden>)
 >Re: Do shell script vs terminal discrepancy (From: Paul Skinner <email@hidden>)
 >do shell script flaw (From: Emmanuel LEVY <email@hidden>)
 >Re: do shell script flaw (From: Emmanuel LEVY <email@hidden>)
 >Re: do shell script flaw (From: Axel Luttgens <email@hidden>)
 >Re: do shell script flaw (From: Emmanuel LEVY <email@hidden>)
 >Re: do shell script flaw (From: "Mark J. Reed" <email@hidden>)
 >Re: do shell script flaw (From: Emmanuel LEVY <email@hidden>)

  • Prev by Date: Re: do shell script flaw
  • Next by Date: Re: do shell script flaw
  • Previous by thread: Re: do shell script flaw
  • Next by thread: Re: do shell script flaw
  • Index(es):
    • Date
    • Thread