rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: "Smarasderagd" <smarry@vex.net>
To: rc@hawkwind.utcs.toronto.edu, tjg@star.le.ac.uk
Subject: Re: New rc snapshot, includes "the equals hack"
Date: Tue, 15 Aug 2000 17:51:20 -0500	[thread overview]
Message-ID: <20000815215120.111.qmail@pantransit.reptiles.org> (raw)

Tim Goodwin <tjg@star.le.ac.uk> writes:
>A new, and possibly controversial, rc development snapshot is available
>from the usual place.
>
>    http://www.star.le.ac.uk/~tjg/rc/snap/rc-1.6s20000811.tar.gz
>
>There are a few minor bug fixes, and the addition of the `-I' flag
>from the Plan9 rc (the opposite of `-i': this shell is definitely not
>interactive).  See the full list of changes since the last beta at the
>end of this message.
>
>In addition, this snapshot includes a cunning patch by Thomas Nordin
>that permits `=' to appear, unquoted, outside assignments.  For ease of
>reference, I'm calling this "the equals hack", where the word "hack" is
>not intended to have any pejorative connotations...
>
>The equals hack, which in fact was just a one line addition to the
>grammar, effectively makes `=' stand for `^'='^' (when it's not an
>assignment).  The slightly surprising feature of this is that `='
>swallows whitespace around it.
>
>    ; echo a = b
>    a=b
>
>Apart from that, everything works as you would expect.

Well, I suppose expr's '=' operator isn't much of an issue, and the '>='
and '<=' operators need to be quoted anyway (I think.)  Make runs with
null assignments to makefile variables would still not work right, though.

make Q= target

turns into

make Q=target

Putting the Q= at the end results in a syntax error due to the trailing
implicit caret, and you'll run into this problem with a trailing =
anywhere.  I'd rather have a fix that works completely, or just go on
quoting things as I have been.


         reply	other threads:[~2000-08-16  0:21 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-15 14:32 smd
2000-08-15 22:51 ` Smarasderagd [this message]
2000-08-17  3:53   ` Decklin Foster
2000-08-21 23:21     ` Chris Siebenmann
2000-08-22 11:51       ` Carlo Strozzi
2000-08-17 10:49   ` Tim Goodwin
  -- strict thread matches above, loose matches on Subject: below --
2000-08-23  1:03 Byron Rakitzis
2000-08-22  0:28 Byron Rakitzis
2000-08-22 23:23 ` Chris Siebenmann
2000-08-18 21:14 Bengt Kleberg
2000-08-15 20:25 smd
2000-08-15  7:28 Byron Rakitzis
2000-08-15  6:41 Byron Rakitzis
2000-08-11 14:01 Tim Goodwin
2000-08-15  2:21 ` Paul Haahr
2000-08-15  4:21 ` Gary Carvell
2000-08-15 14:52 ` Mark K. Gardner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20000815215120.111.qmail@pantransit.reptiles.org \
    --to=smarry@vex.net \
    --cc=rc@hawkwind.utcs.toronto.edu \
    --cc=tjg@star.le.ac.uk \
    --subject='Re: New rc snapshot, includes "the equals hack"' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).