ksh 2011-01-04, too.

Olga

2011/1/4 ольга крыжановская <[email protected]>:
> David, ksh 2010-12-21 still prints this warning. Can you remove it, please?
>
> Olga
>
> On Thu, Nov 25, 2010 at 2:07 PM, Roland Mainz <[email protected]> 
> wrote:
>> On Wed, Nov 24, 2010 at 4:57 PM, David Korn <[email protected]> wrote:
>>> Subject: Re: [ast-users] Question about ksh: warning: line 1: > within ${}  
>>> should be quoted
>>>> Can some one please explain the following warning:
>>>>
>>>> ksh -n -c 'str="<hello> <world>" ; dummy="${str//~(E-g)<.*> (<.*>)}" ;
>>>> print -v .sh.match'
>>>> /bin/ksh: warning: line 1: < within ${} should be quoted
>>>> /bin/ksh: warning: line 1: > within ${} should be quoted
>>>>
>>>> Why should < and > be quoted? <.*> (<.*>) look like a valid extended
>>>> regex to me and changing < to \< and > to \> changes the meaning.
>>>>
>>>> Olga
>>>>
>>>
>>> At some point in the rather distant past (before adding ~(E) to pattern
>>> patching), I was planning some expansions that would used <, |,  and > as
>>> operators within ${...} expansions.  Therefore, I wanted to warn people
>>> if they used them without quoting them.
>>>
>>> I guess I should remove the warning since it no longer seems to apply.
>>
>> I've attached a patch (as
>> "libshell_remove_lexusequote_warning001.diff") which removes the
>> warning...
>> ... is the patch Ok for you ?
>>
>> ----
>>
>> Bye,
>> Roland
>>
>> --
>>  __ .  . __
>>  (o.\ \/ /.o) [email protected]
>>  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
>>  /O /==\ O\  TEL +49 641 3992797
>>  (;O/ \/ \O;)
>>
>> _______________________________________________
>> ast-users mailing list
>> [email protected]
>> https://mailman.research.att.com/mailman/listinfo/ast-users
>>
>>
>
>
>
> --
>      ,   _                                    _   ,
>     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
> .----'-/`-/     [email protected]   \-`\-'----.
>  `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
>      /\/\     Solaris/BSD//C/C++ programmer   /\/\
>      `--`                                      `--`
>



-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     [email protected]   \-`\-'----.
 `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
      /\/\     Solaris/BSD//C/C++ programmer   /\/\
      `--`                                      `--`

_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to