[SVN] Passing variables to osascript, or other workaround?

Allan Odgaard allan at macromates.com
Thu May 12 20:03:18 UTC 2005


On May 12, 2005, at 16:37, Charilaos Skiadas wrote:

> What about the shell though? You can't use any delimiter in:
> list="${list//\\\\/\\\\}"  , can you?

No -- the / or // in the shell stuff is the actual substitute 
“initiator”, where perl/sed uses s.

> Of course, as we now know, it's good to avoid the shell method anyway, 
> because of its extreme slowness. I'm still puzzled about that 
> actually, it's quite a difference.

Most likely it makes a new copy of the string for each replacement. The 
time seems to depend on the number of replacements.




More information about the textmate-dev mailing list