From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from janus.ocegr.fr ([194.3.183.34]) by hawkwind.utcs.utoronto.ca with SMTP id <24747>; Fri, 10 Dec 1999 05:07:01 -0500 Received: (qmail 18519 invoked from network); 10 Dec 1999 09:29:23 -0000 Received: from hydra.ocegr.fr (HELO ocegr.fr) (134.188.135.3) by janus.ocegr.fr with SMTP; 10 Dec 1999 09:29:23 -0000 Received: from alcina (alcina.ocegr.fr [134.188.136.183]) by ocegr.fr (8.8.8/8.8.8) with ESMTP id KAA28083 for ; Fri, 10 Dec 1999 10:37:32 +0100 (MET) Message-Id: <4.2.2.19991210102710.00ad3380@mailhost.ocegr.fr> X-Sender: vons@mailhost.ocegr.fr X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.2 Date: Fri, 10 Dec 1999 04:32:05 -0500 To: rc@hawkwind.utcs.toronto.edu From: Gert-Jan Vons Subject: Re: tilde featuritis alert In-Reply-To: <199912100745.XAA29345@peanut.rakitzis.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Byron Rakitzis wrote: >For better or for worse, rc's grammar allows for multiple temporary >assignments: > > ; foo=1 bar=2 echo $foo $bar > 1 2 > ; echo $foo $bar > >So you have to account for that as well. > >With sufficient tweaking to the parser and lexer perhaps you could allow >unquoted '='s in a parameter list, but I tried my hand at it years ago >and I wasn't able to come up with anything remotely pleasant. On the other hand: ; echo foo=1 bar=2 syntax error so it does detect that the assignment is not valid in this case. If it just could take the equals-sign as is... Gert-Jan ----- "A little government and a little luck are necessary in life, but only a fool trusts either of them." - P.J. O'Rourke