3 ms·
I use this all the time (I call it $EXEC instead), and have gotten into the habit of starting all my scripts with EXEC=echo and put it on every command that doe
by croehrig 5y ago
I use this all the time (I call it $EXEC instead), and have gotten into the habit of starting all my scripts with EXEC=echo and put it on every command that does any file changes. It has saved my bacon many times.
It doesn't work all the time as the previous poster noted, but it is very low friction which is especially important when writing quick throw-away scripts.