URI: 
       texperiment - allow = in words late in the command line - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit aec641d24c0e41671097563d938a9ed21999c0ab
   DIR parent b7d8e86a72da7d644b7cf689545a66d15b608cd2
  HTML Author: rsc <devnull@localhost>
       Date:   Tue, 27 Jun 2006 17:41:48 +0000
       
       experiment - allow = in words late in the command line
       
       Diffstat:
         M src/cmd/rc/syn.y                    |       3 +++
       
       1 file changed, 3 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/src/cmd/rc/syn.y b/src/cmd/rc/syn.y
       t@@ -2,6 +2,7 @@
        %term WORD REDIR DUP PIPE SUB
        %term SIMPLE ARGLIST WORDS BRACE PAREN PCMD PIPEFD /* not used in syntax */
        /* operator priorities -- lowest first */
       +%left LOW
        %left IF WHILE FOR SWITCH ')' NOT
        %left ANDAND OROR
        %left BANG SUBSHELL
       t@@ -9,6 +10,7 @@
        %left '^'
        %right '$' COUNT '"'
        %left SUB
       +%left '='
        %{
        #include "rc.h"
        #include "fns.h"
       t@@ -78,6 +80,7 @@ first:        comword
        word:        keyword                        {lastword=1; $1->type=WORD;}
        |        comword
        |        word '^' word                {$$=tree2('^', $1, $3);}
       +|        word '=' word %prec LOW                {$$=tree2('^', tree2('^', $1, token("=", WORD)), $3);}
        comword: '$' word                {$$=tree1('$', $2);}
        |        '$' word SUB words ')'        {$$=tree2(SUB, $2, $4);}
        |        '"' word                {$$=tree1('"', $2);}