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
-- 
      ,   _                                    _   ,
     { \/`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