rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Tim Goodwin <tjg@star.le.ac.uk>
To: rc@hawkwind.utcs.utoronto.ca
Subject: New rc snapshot, includes "the equals hack"
Date: Fri, 11 Aug 2000 09:01:32 -0500	[thread overview]
Message-ID: <LnkAAEL5kzlQtg0A@ltsun0.star.le.ac.uk> (raw)

A new, and possibly controversial, rc development snapshot is available
from the usual place.


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

Apart from that, everything works as you would expect.

    ; dd if=/etc/group |wc
    1+1 records in
    1+1 records out
         44      44     780

    ; sh configure --prefix=/local

    ; a=b=c b=c echo $a $b
    b=c c

(All these were previously syntax errors.  The equals hack doesn't
change the meaning of anything that was previously legal.)

What do you think?  Should the equals hack stay?



  Bug: isatty() tests in input.c are relevant to any fd, not just 0.
  Now `. -i /dev/tty' works right.

  Bug: fn sigexit wasn't always cleared in child shells.

  Bug: `~ () '*'' dumped core.


  Portability: need special runes for read() returning EIO under job
  control systems.


  Feature: add `-I' flag (definitively not interactive) for
  compatibility with Plan 9 rc.


  Feature: the "equals hack".

             reply	other threads:[~2000-08-14 20:14 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-11 14:01 Tim Goodwin [this message]
2000-08-15  2:21 ` Paul Haahr
2000-08-15  4:21 ` Gary Carvell
2000-08-15 14:52 ` Mark K. Gardner
2000-08-15  6:41 Byron Rakitzis
2000-08-15  7:28 Byron Rakitzis
2000-08-15 14:32 smd
2000-08-15 22:51 ` Smarasderagd
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
2000-08-15 20:25 smd
2000-08-18 21:14 Bengt Kleberg
2000-08-22  0:28 Byron Rakitzis
2000-08-22 23:23 ` Chris Siebenmann
2000-08-23  1:03 Byron Rakitzis

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:

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

  git send-email \
    --in-reply-to=LnkAAEL5kzlQtg0A@ltsun0.star.le.ac.uk \
    --to=tjg@star.le.ac.uk \
    --cc=rc@hawkwind.utcs.utoronto.ca \
    --subject='Re: New rc snapshot, includes "the equals hack"' \


* 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).