• 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: Christopher Stone <email@hidden>
  • Date: Thu, 04 Aug 2011 23:06:29 -0500

On Aug 04, 2011, at 22:40, Mark J. Reed wrote:
What we need is a shortcut for bash's "echo -n |" - that is, echo with no trailing newline.  The sh equivalent is probably "echo...\c", in which case this should work, but I haven't tried:
______________________________________________________________________

Hey Mark,

Yes.  I posted to the list several hours ago about calling bash's echo with -n from 'do shell script'.

You're right about \c in the sh echo; it works:

set mySuffix to "What the blinking
hell?"

set cmd to "/bin/echo -n " & quoted form of mySuffix
do shell script cmd without altering line endings

set cmd to "echo " & quoted form of (mySuffix & "\\c")
do shell script cmd without altering line endings

--
Best Regards,
Chris

 _______________________________________________
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

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>)
 >Re: Big bug in shell scripting in Applescript (From: "Mark J. Reed" <email@hidden>)
 >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>)
 >Re: Big bug in shell scripting in Applescript (From: "Mark J. Reed" <email@hidden>)
 >Re: Big bug in shell scripting in Applescript (From: "Mark J. Reed" <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