Hacker News new | ask | show | jobs
by shawkinaw 4176 days ago
Yep, my thought exactly. My standard bash header is

    #!/bin/bash
    set -eu
    IFS=$'\n\t'
(Wish there was a shorthand version of pipefail, then I'd always use that too.)
1 comments

You can save a line by doing #!/bin/bash -eu
Which is no equivalent if the script is executed using "bash script.sh" ;).