tech-userlevel archive

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

Re: sh -e changes broke pkgsrc



On Mon, May 26, 2008 at 03:27:03PM +0100, Matthias Scheler wrote:
 > As I suspected it was a case of broken shell code in "pkgsrc". It used
 > this construct with "set -e":
 > 
 >      while read type pattern dir; do                                 \
 >              ${TEST} "$$type" != "bootstrap" && continue;            \
 >              ${_DEPENDS_INSTALL_CMD};                                \
 >      done
 > 
 > If "$$type" is "bootstrap" the whole ".. && ..." expression will evaluate
 > to false and the shell should terminate evaluation. 

According to POSIX only failing *simple commands* are supposed to
cause -e exits. So this is not true...

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index