drfickle <[EMAIL PROTECTED]> writes:

> http://qa.mandrakesoft.com/show_bug.cgi?id=3327
>
>            Product: bash
>          Component: bash
>            Summary: bash if statement not working as expected
>            Version: 2.05b-12mdk
>           Platform: PC
>         OS/Version: All
>             Status: UNCONFIRMED
>           Severity: normal
>           Priority: P2
>         AssignedTo: [EMAIL PROTECTED]
>         ReportedBy: [EMAIL PROTECTED]
>
>
> I have the below script which works fine on my Red Hat 7.3 (bash-2.05a) box. It
> also runs on Mandrake 8.2 (bash-2.05-16mdk).
>
> I expect 'make pure_all' to be run unless -b is specified.
>
> #!/bin/sh
> if [ "$*" = "${*%-b*}" ];
>   then make pure_all;
> fi
>
> With cooker, this command is never called, regardless of which arguments are
> passed to it.

This works as expected for me. Could you check maybe another reason why it fails
for you?

-- 
Warly

Reply via email to