help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running case commands with the shell function?


From: Quinn Grier
Subject: Re: Running case commands with the shell function?
Date: Thu, 14 Sep 2017 10:22:27 -0700
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

On 2017-09-14 05:54, David Boyce wrote:
> At one time "case" was necessary with
> patterns because "if" didn't handle them, but in the POSIX shell they take
> the same pattern constructs so you could say "if [[ $$target =  i386-*- ]];
> then ... else ... fi".

Is this true? I can only find POSIX saying otherwise:

     The following words may be recognized as reserved words on
     some implementations (when none of the characters are quoted),
     causing unspecified results:

          [[          ]]          function          select

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]