Y
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
LeoPanthera
4176 days ago
You can save a line by doing #!/bin/bash -eu
link
krotton
4176 days ago
Which is no equivalent if the script is executed using "bash script.sh" ;).
link