<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>On 22 Aug 2007, at 20:44, Alain O'Dea wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">For example if the first line of the script named "do_some_stuff" was</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">"#!/bin/env bash", then the file type would be a Bourne Shell script</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">file and Shell script (bash) syntax would be turned on.</FONT></P> </BLOCKQUOTE></DIV><BR><DIV>The shell script grammar includes the following:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>firstLineMatch = '^#!.*(bash|zsh|sh|tcsh)';</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>so this should work already.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Try this from Terminal:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>echo '#!/bin/env bash' | mate</DIV></BODY></HTML>