• 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: Big bug in shell scripting in Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Big bug in shell scripting in Applescript


  • Subject: Re: Big bug in shell scripting in Applescript
  • From: "Mark J. Reed" <email@hidden>
  • Date: Thu, 04 Aug 2011 18:37:10 -0400

On Thu, Aug 4, 2011 at 6:24 PM, Zavatone, Alex <email@hidden> wrote:
> I'm not sure that is correct.  If you do not use "without altering line endings", the script runs fine.

Only because of extra magic. In addition to turning embedded newlines
into carriage returns, the normal 'do shell script' behavior also
automatically removes a single *trailing* newline.   Which works very
well in combination with the fact that <<< adds one.  Really, if you
stick to single-line strings you won't have this difficulty. :)

Unfortunately I don't know of a way to preserve that behavior without
also preserving the carriage return translation.

--
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: Big bug in shell scripting in Applescript
      • From: Christopher Stone <email@hidden>
    • Re: Big bug in shell scripting in Applescript
      • From: "Zavatone, Alex" <email@hidden>
References: 
 >Big bug in shell scripting in Applescript (From: "Zavatone, Alex" <email@hidden>)
 >Re: Big bug in shell scripting in Applescript (From: "Mark J. Reed" <email@hidden>)
 >Re: Big bug in shell scripting in Applescript (From: "Zavatone, Alex" <email@hidden>)

  • Prev by Date: Re: Big bug in shell scripting in Applescript
  • Next by Date: Re: Big bug in shell scripting in Applescript
  • Previous by thread: Re: Big bug in shell scripting in Applescript
  • Next by thread: Re: Big bug in shell scripting in Applescript
  • Index(es):
    • Date
    • Thread