• 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: Weird reply in Tiger vs. Leopard....is this a bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Weird reply in Tiger vs. Leopard....is this a bug?
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: Weird reply in Tiger vs. Leopard....is this a bug? (From: Jim Skibbie <email@hidden>)
 >Re: Weird reply in Tiger vs. Leopard....is this a bug? (From: Axel Luttgens <email@hidden>)
 >Re: Weird reply in Tiger vs. Leopard....is this a bug? (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: set oldDelims to AppleScript's text item delimiters
  • Next by Date: Re: Get only the name of the file, instead of the whole path!
  • Previous by thread: Re: Weird reply in Tiger vs. Leopard....is this a bug?
  • Next by thread: Re: Weird reply in Tiger vs. Leopard....is this a bug?
  • Index(es):
    • Date
    • Thread