Greg Schafer wrote:
> 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..
>
>> [[ $ = "y" ]] && func2
>
> replace that line with
>
> if [[ $ = "y" ]]; then func2; fi
>
> and it'll do what you want.
Hey Grep,
Yep.. that would be the 'standard' conditional format.
Taking a
shortcut sometimes takes longer The
addition of a bash 'noop' will
also satisfy bash's interpreter parser.
(how's your new toy..?)
>
> Regards
> Greg
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
|