• 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: Using 'echo' from 'do shell script'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using 'echo' from 'do shell script'


  • Subject: Re: Using 'echo' from 'do shell script'
  • From: Philip Aker <email@hidden>
  • Date: Sat, 18 May 2002 11:39:10 -0700

On Saturday, May 18, 2002, at 09:48 AM, Matthew Stuckwisch wrote:

Erm, scratch that...


Glad you came to your senses. =8-)

Let me illustrate further. 'do shell script' by default is now supposed to strip the last newline from shell output.
If I do this:

set joe to "joe" & return
do shell script "echo " & joe & " >~/Desktop/joe.txt"

I get no newline in the result. But if I do this:

set joe to "joe" & return & "joe" & return

then I will get a naughty newline. It would seem that this is an inconsistency that should be addressed because some shell tools like 'sort' don't have a -n option.

Agree?


Philip Aker
http://www.aker.ca

'
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Using 'echo' from 'do shell script'
      • From: Matthew Stuckwisch <email@hidden>
References: 
 >Re: Using 'echo' from 'do shell script' (From: Matthew Stuckwisch <email@hidden>)

  • Prev by Date: Re: deep archives
  • Next by Date: Re: Using 'echo' from 'do shell script'
  • Previous by thread: Re: Using 'echo' from 'do shell script'
  • Next by thread: Re: Using 'echo' from 'do shell script'
  • Index(es):
    • Date
    • Thread