6 ms·
An old trick for convincing (some) shells that your script is an sh-compatibile shell is to use a colon on the first line. Support for this trick was added to f
by nickburlett 14y ago
An old trick for convincing (some) shells that your script is an sh-compatibile shell is to use a colon on the first line. Support for this trick was added to fish back in 2007: https://gitorious.org/~ridiculousfish/fish-shell/fishfish/blobs/master/exec.c#line520 https://gitorious.org/~ridiculousfish/fish-shell/fishfish/bl...
- akkartik 14y agoThanks for the pointer. I can't say how much I wish more people would include pointers to code fragments or specific commits on a site called hacker news. Tangential question: is gitorious's syntax highlighting usually this awful? The first thing I need from syntax highlighting is distinguishing comments from code.
- deleted 14y ago[deleted]
- deleted 14y ago[deleted]
- cheatercheater 14y agoI'm not sure how to use it. Can you give an example of where it works, and what changes if this is not done?