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