martin f krafft <[EMAIL PROTECTED]> writes:

> My first thought was that this is related to `set -e`, which would
> prevent the subshell to ever execute kill, since the killing of
> xautolock would be a failure. However, shell options do not
> propagate to subshells, so the xautolock-containing shell is +e by
> default.

My experiments indicate otherwise:

$ for sh in sh bash dash posh ksh zsh; do $sh -e -c '(false; echo foo)'; done
$ for sh in sh bash dash posh ksh zsh; do $sh -c '(false; echo foo)'; done
foo
foo
foo
foo
foo
foo
$ for sh in sh bash dash posh ksh zsh; do $sh -e -c '(set +e; false; echo 
foo)'; done
foo
foo
foo
foo
foo
foo

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
Finger [EMAIL PROTECTED] (NOT a valid e-mail address) for more info.

Reply via email to