Re: Using 'echo' from 'do shell script'
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.