9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: David Gordon Hogan <dhog@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] unix RC shell bug
Date: Sat,  1 Sep 2001 00:43:07 -0400	[thread overview]
Message-ID: <20010901044312.8E05F19A18@mail.cse.psu.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 168 bytes --]

IIRC, there was a syntax change at some point,
and the Unix rc uses the old syntax.  Try $^t
instead of $"t.

rc ready. Type "sz file ..." to your modem program


[-- Attachment #2: Type: message/rfc822, Size: 2037 bytes --]

From: Matt <matt@proweb.co.uk>
To: 9fans <9fans@cse.psu.edu>
Cc: rc@hawkwind.utcs.utoronto.ca
Subject: [9fans] unix RC shell bug
Date: Sat, 1 Sep 2001 05:11:16 +0100
Message-ID: <7126271516.20010901051116@proweb.co.uk>

after hours of not noticing one of my variables was a list and not a
string (it's 5am I've been on this since 10pm!) I eventually got to
this sorry state.

in good ol' plan9

cpu% t=(1 2 3 6 7)
cpu% echo $#t
5
cpu% echo $"t
1 2 3 6 7

in /usr/local/bin/rc (ver 1.6) on FreeBSD (ver 4.2-RELEASE)

; t=(1 2 3 6 7)
; echo $#t
5
; echo $"t
syntax error


just fyi

             reply	other threads:[~2001-09-01  4:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-01  4:43 David Gordon Hogan [this message]
2001-09-02 10:50 ` Re[2]: " Matt
  -- strict thread matches above, loose matches on Subject: below --
2001-09-03  4:18 Byron Rakitzis
2001-09-01  4:54 David Gordon Hogan
2001-09-01 11:19 ` Boyd Roberts
2001-08-31 19:35 [9fans] Anybody runs kaffe? Richard Miller
2001-09-01  4:11 ` [9fans] unix RC shell bug Matt

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=20010901044312.8E05F19A18@mail.cse.psu.edu \
    --to=dhog@plan9.bell-labs.com \
    --cc=9fans@cse.psu.edu \
    /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).