Re: [PATCH] Allow shell scripts to run with non-Bash /bin/sh
David Kastrup <dak@gnu.org> writes:
Show 24 quoted lines
> Eygene Ryabinkin <rea-git@codelabs.ru> writes:
>
>>> That is, what does the shell say if you do this?
>>>
>>> case Ultra in
>>> Super)
>>> false ;;
>>> Hyper)
>>> true ;;
>>> esac &&
>>> echo case returned ok
>>
>> It says 'case returned ok', so I will try to understand why it
>> works here and does not work in the 'while' construct.
>
> What you actually need to do is
>
> false
> case Ultra in
> Super)
> false ;;
> Hyper)
> true ;;
> esac && echo case returned ok
AHHHHHH.
Is "case" supposed to be transparent?