• 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: Matthew Stuckwisch <email@hidden>
  • Date: Sat, 18 May 2002 13:54:55 -0500

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?

Much so. Is strange this very :P


Matthew Stuckwisch
[AIM/MSN]{GuifaSwimmer} | [Yahoo!]{SapphireTree} | [ICQ]{137477701}
[IRC]{guifa / G}(esperNET / irc.massinova.com)
_______________________________________________
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: Philip Aker <email@hidden>
References: 
 >Re: Using 'echo' from 'do shell script' (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Using 'echo' from 'do shell script'
  • Next by Date: with administrator privileges...
  • Previous by thread: Re: Using 'echo' from 'do shell script'
  • Next by thread: Re: Using 'echo' from 'do shell script'
  • Index(es):
    • Date
    • Thread