• 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: Q: echo | sed -- Solved!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Q: echo | sed -- Solved!


  • Subject: Re: Q: echo | sed -- Solved!
  • From: Graff <email@hidden>
  • Date: Tue, 18 May 2004 13:04:06 -0400

On May 18, 2004, at 11:57 AM, Nigel Smith wrote:

On 18/5/04 14:50, "Gnarlodious" <email@hidden> wrote:

I'm sending a bug report even though this may be a shell issue.

Using "quoted form" as you pass the string in has the same behaviour as
above for the Mac-delimited strings. But suddenly the Unix delimited strings
*will* work with echo (since the entire string, with returns, becomes a
single argument), you get the same input as you did with the Unix-based text
file, so you get the same output.

Different behaviour in the different editors is down to them using different
line endings when you hit "return" in mid-string.

That's my theory -- but I'm prepared to be shot down by those more
Unix-savvy than I am (which means almost everyone!).

Yep, that's basically what I was getting at. The "quoted form of" encapsulates the text so that the returns don't bork the echo statement. There is the additional issue of Script Editor using Unix-line endings while Script Debugger uses Mac-style line endings. If you use both "quoted form of" and Unix-style line endings then there should be no problems with the script.

- Ken
_______________________________________________
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.


References: 
 >Re: Q: echo | sed -- Solved! (From: Nigel Smith <email@hidden>)

  • Prev by Date: Re: Shutdown script
  • Next by Date: Re: Print to PDF
  • Previous by thread: Re: Q: echo | sed -- Solved!
  • Next by thread: Re: Q: echo | sed -- Solved!
  • Index(es):
    • Date
    • Thread