On Wed, Dec 16, 2015 at 14:20:59 -0500, Mike Shal wrote:
> foo.bash:
> #! /bin/bash -e -o pipefail (does this work?)

No. Shebang lines only support a single argument. This is the same as:

    /bin/bash '-e -o pipefail' foo.bash

Instead, use shopt to set pipefail, and maybe even 'set -e' since the
script should be '#!/usr/bin/env bash' so that systems without bash in
/bin (mainly BSDs) will work.

--Ben

-- 
-- 
tup-users mailing list
email: [email protected]
unsubscribe: [email protected]
options: http://groups.google.com/group/tup-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"tup-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to