[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: enforcing xautolock



martin f krafft <madduck@debian.org> 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 amu@monk.mit.edu (NOT a valid e-mail address) for more info.



Reply to: