<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Thanks for replying.</div><div><br></div><div>I've fixed it, but I'm not sure why it didn't originally work with exec().I have a command that straightens curly single quotes,</div><div><br></div><div style="font-size: 14px; ">perl -p -e 's/’/''/g;'</div><div><br></div><div>This works with zsh (in the terminal) because I've set the option RC_QUOTE so the double quote within the quotes will become a single one.</div><div><br></div><div>I've ended up with this:</div><div><br></div><div>perl -p -e 's/’/\047/g;'</div><div><br></div><div>which works, but it took me a while to figure. I could've written it straight into perl I suppose, but since the command line options write half the code for me that feels like a poor substitute. Is there no way to make zsh the default?</div><div><br></div><div><br></div><div>Regards,</div><div>Iain</div><div><br></div><br><div><div>On 29 Jul 2010, at 19:22, Allan Odgaard wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On 29 Jul 2010, at 19:29, Iain Barnett wrote:<br><br><blockquote type="cite">I've tried adding #!/bin/zsh at the top of commands but that just runs them through bash first and it's altering some of the commands along the way.<br></blockquote><br>That should do it. Can you give a step-by-step of what you tried?<br><br>TextMate only use bash if there is no shebang, if there is a shebang, it hands the command to exec().<br><br><br>_______________________________________________<br>textmate mailing list<br><a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>http://lists.macromates.com/listinfo/textmate<br></div></blockquote></div><br></body></html>