3 ms·
Ages ago I wrote a simple command that let you do shell scripting in the shebang line. http://reasonableapproximation.net/2010/07/27/silly-things-to-do-with-she
by philh 10y ago
Ages ago I wrote a simple command that let you do shell scripting in the shebang line. http://reasonableapproximation.net/2010/07/27/silly-things-to-do-with-shebang-lines.html http://reasonableapproximation.net/2010/07/27/silly-things-t...
I'm not sure I've used it since, but I still like the xgraph thing.
- jmiserez 10y agoVery interesting and a good read. I was not aware that you could pass an argument in the shebang line.
- hk__2 10y agoIt’s often used to have your shell scripts fail fast by using `#! /usr/bin/bash -e`; which you could also do by using `set -e` at the beginning of the script but that’s less elegant.
- kylek 10y agoThis is pretty great little read, much appreciated