George Boudreau wrote:
> This is a head scratcher if you have never seen it before.
Hi George
I've hit this exact same problem in gsbuild due to the way I handle the
scriptlets. If I need a conditional on the last line of a scriptlet, I
work around it by using an if/then instead of a &&. I'm sure this
behavior must be documented in the bash manual somewhere.. but buggered if
I can find it :-( Some quirkiness due to curly braces methinks..
> [[ ${V} = "y" ]] && func2
replace that line with
if [[ ${V} = "y" ]]; then func2; fi
and it'll do what you want.
Regards
Greg
--
http://www.diy-linux.org/
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page