9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] unix RC shell bug
@ 2001-09-01  4:43 David Gordon Hogan
  2001-09-02 10:50 ` Re[2]: " Matt
  0 siblings, 1 reply; 2+ messages in thread
From: David Gordon Hogan @ 2001-09-01  4:43 UTC (permalink / raw)
  To: 9fans

[-- 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re[2]: [9fans] unix RC shell bug
  2001-09-01  4:43 [9fans] unix RC shell bug David Gordon Hogan
@ 2001-09-02 10:50 ` Matt
  0 siblings, 0 replies; 2+ messages in thread
From: Matt @ 2001-09-02 10:50 UTC (permalink / raw)
  To: 9fans

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

new, old, wrong universe, whatever!:)

$^t did indeed work and my universe was saved from the marauding word
documents I was converting.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-09-02 10:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-01  4:43 [9fans] unix RC shell bug David Gordon Hogan
2001-09-02 10:50 ` Re[2]: " Matt

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