From: Tom Duff td@pixar.com
Subject: [9fans] minor glitch with free carets
Date: Thu, 10 Jun 1999 09:01:25 -0700 [thread overview]
Message-ID: <19990610160125.WD8eOVP_Zw4PZPu5Ocz6t3F8GO-cokrG3xw9ncqKluI@z> (raw)
On Jun 10, 10:04am, Elliott Hughes wrote:
> Subject: Re: [9fans] minor glitch with free carets
> with Byron's rc:
>
> % echo while'b'
> whileb
I spoke to Rob Pike yesterday and mentioned that I thought
that free carets were the single stupidest thing in rc.
Don't use them. Take them out of the code. (Apparently
I always knew this. There's a comment in the code where
this is implemented that uses the word `embarassing.')
BTW, the bug is on line 318 of /sys/src/cmd/rc/lex.c:
if(t->type!=WORD) lastword=0;
I think that changing this to
lastword=0;
fixes it (I don't have a plan 9 machine, so I can't test it.)
d
--
Tom Duff. If UNIX is the great novel, Perl is the Cliff's Notes.
next reply other threads:[~1999-06-10 16:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-10 16:01 Tom [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-08-26 18:46 rob
1999-08-26 18:20 Russ
1999-06-10 16:40 James
1999-06-10 16:25 Tom
1999-06-10 8:04 Elliott
1999-06-09 14:57 rob
1999-06-09 13:32 rog
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=19990610160125.WD8eOVP_Zw4PZPu5Ocz6t3F8GO-cokrG3xw9ncqKluI@z \
--to=9fans@9fans.net \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).