Strange action when testing blfs_tool

Greg Schafer gschafer at
Tue Aug 29 18:53:00 PDT 2006

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.


More information about the alfs-discuss mailing list