[pacman-dev] [[ and set -E vs trap ERR] - the [[ $( ! type workaround

Allan McRae allan at archlinux.org
Thu Nov 19 22:49:14 EST 2009


Isaac Good wrote:
> Re: the bug with [[ $( type -p func ) ]] and the funky !

<snip>

Thanks for the info.  I have learnt a lot about bash and error traps 
from this.

Thinking about this issue, we will have to keep the "[[ ! $(type..." 
for a while anyway to keep compatibility with bash 4.0.

Allan


More information about the pacman-dev mailing list