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: "Mark J. Reed" <email@hidden>
- Date: Fri, 18 Jan 2008 06:50:28 -0500
Whoops!
Alex, my sincerest apologies. I thought I had verified that it wasn't
echo's fault because the OP's script was output from Ruby; but it was
output from Ruby filtering input from echo!
You're absolutely right.
I still claim it's a bug, however; "do shell script" for some reason
turns on the xpg_echo shopt option, which is not on by default in
other environments (e.g. Terminal).
The workaround is therefore to add a "shopt -u xpg; " in front of any
do shell command that relies on the output of echo coming back into AS
unmolested.
Excuse me while I go wipe the egg off my face. And then go update my
bug report!
_______________________________________________
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