Re: using a shell variable in an osascript line?
Re: using a shell variable in an osascript line?
- Subject: Re: using a shell variable in an osascript line?
- From: LuKreme <email@hidden>
- Date: Sun, 1 Mar 2009 17:14:55 -0700
On 1-Mar-2009, at 16:27, Mark J. Reed wrote:
I'm a bit confused by the assertion that assignment to a var eats
newlines. Certainly untrue with shell variables - assignment won't
eat the newlines, though expanding the var unqoted will:
$ wc -l file
4 file
$ foo=`cat file`
$ echo $foo | wc -l
1
$ echo "$foo" | wc -l
4
Interesting. I thought I'd tried that. the CRLF must have been
getting mucked up earlier in the assignment rather than the expansion.
--
SUSURRATION: It's a hushed noise. But it hints of plots and secrets
and people turning to one another in surprise. It's the noise,
in fact, made just after the sword i withdrawn from the stone
and just before the cheering starts.
_______________________________________________
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