Roland Mainz wrote:
> After updating to ast-ksh.2009-03-10 we got lots of warings like this
> one:
> -- snip --
> $ ksh93 -n -c 'redirect
> {netfd}<>"/dev/tcp/${host}/${port}"'
> ksh93: warning: line 1: use space or tab to separate operators < and "
> -- snip --
> 
> How do I change the code to get rid of the warning ? I tried to add a
> <space> but this still fails:
> -- snip --
> $ ksh93 -n -c 'redirect {netfd} <>
> "/dev/tcp/${host}/${port}"'
> ksh93: warning: line 1: use space or tab to separate operators < and
> -- snip --

Attached (as
"ksh93_fix_needspacebetweenoperators_lexer_warning001.diff.txt") is a
patch which should fix the problem ...
... David: Can you check whether the patch is Ok for you (AFAIK we have
to put it into the patches for OpenSolaris for now (assuming it's thr
right patch)) ?

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [email protected]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)
Index: src/lib/libshell/common/sh/lex.c
===================================================================
--- src/lib/libshell/common/sh/lex.c    (revision 1456)
+++ src/lib/libshell/common/sh/lex.c    (working copy)
@@ -603,7 +603,7 @@
                                        }
                                        else
                                        {
-                                               if((n=fcpeek(0))!=RPAREN && 
n!=LPAREN && lp->lexd.warn)
+                                               if(lp->lexd.warn && 
(n=fcpeek(0))!=RPAREN && n!=' ' && n!='\t')
                                                        
errormsg(SH_DICT,ERROR_warn(0),e_lexspace,shp->inlineno,c,n);
                                        }
                                }
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to