Re: Weird reply in Tiger vs. Leopard....is this a bug?
Re: Weird reply in Tiger vs. Leopard....is this a bug?
- Subject: Re: Weird reply in Tiger vs. Leopard....is this a bug?
- From: Axel Luttgens <email@hidden>
- Date: Fri, 18 Jan 2008 09:48:42 +0100
On 18/01/08 1:10, Mark J. Reed wrote:
No. Absolutely a bug. The echo command is irrelevant. The fact is,
if the output of any shell command includes a "\" followed by an "n",
the new AS will replace that sequence with a return character. This
is entirely new and incorrect behavior that has nothing to do with how
you generate the output in the first place, and therefore nothing to
do with the way echo treats backslash sequences in its parameters.
Hello Mark,
As I wasn't sure to have correctly understood what you meant, I tried
the following.
I created a folder "test" on my desktop; within it, I created a file named
file\nname\n
and containing:
wouldbeline1\nwouldbeline2\n
What I wanted to try should now be obvious:
do shell script "ls ~/Desktop/test; cat
~/Desktop/test/file\\\\nname\\\\n"
--> "file\\nname\\n
wouldbeline1\\nwouldbeline2\\n"
As far as I can tell from the above, there is no replacement by AS of
"\n" sequences occurring in the output with a return character.
Clearly, I missed your point... ;-)
Unless our leopards aren't behaving the same way; could you try the above?
Axel
_______________________________________________
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