id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
2575	shell script gotcha in boot	pooryorick		"I use a build process which is sensitive to the exit code of ""boot"", assuming that everything went OK only if it returns 0.  Because the last line of the script uses the && operator, the entire script can exit with a code other than zero if the last file checked does not exist.  In my case, ""validate"" indeed did not exist, and the script failed.

Solution:  Replace the && with an if statement:

{{{
if test -f $f; then
    chmod +x $f
fi
}}}
"	bug	closed	normal		Build System	6.8.3	fixed			Unknown/Multiple	Unknown/Multiple		Unknown				
