Re: Q: echo | sed -- Solved!
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.