I have a non-interactive bash script like this:

```
#!/usr/bin/env bash
. $(which env_parallel.bash)
env_parallel --session
set -Eeuo pipefail
shopt -s inherit_errexit

# defs

env_parallel --lb ::: ‘echo a’ ‘echo b’
```

And the script silently fails with an exit status 1.

It seems env_parallel really doesn’t like the following:

```
set -Eeuo pipefail
shopt -s inherit_errexit
```

Is there a way to make env_parallel work without loosening the script?

BTW, is directly sourcing `which env_parallel.bash` the recommended approach 
for non-interactive scripts? I don’t see it mentioned anywhere and the 
officially documented bashrc approach only works for interactive shells.

Reply via email to