rc

[fork] interactive rc shell
Log | Files | Refs | README | LICENSE

commit 1b4f262aca1d67fdd1cea8ccbee09c03d23b1ab7
parent 449420e7e294e11aff835f638481fd7608778bc1
Author: tjg <tjg>
Date:   Fri, 10 Dec 1999 11:54:46 +0000

  Documentation: extra parentheses around `~' and `!' expressions are
  forbidden.  Tom Duff's paper is not distributed with rc, but is
  available on the web.

Diffstat:
Mrc.1 | 23+++++++++++++++++------
1 file changed, 17 insertions(+), 6 deletions(-)

diff --git a/rc.1 b/rc.1 @@ -161,7 +161,7 @@ .if !"\\$4"" .Xf \\$2 \\$1 "\\$3\\f\\$1\\$4\\*(Xi" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9" .if "\\$4"" \\$3\fR\s10 .. -.TH RC 1 "1999-11-11" +.TH RC 1 "1999-12-10" .SH NAME rc \- shell .SH SYNOPSIS @@ -1971,6 +1971,17 @@ The command should search .Cr $path . .PP +Extra parentheses around a +.Cr ~ +expression or a +.Cr ! +expression are a syntax error. Thus, this +code is illegal. +.Ds +.Cr "while ((~ $1 -*) && (! ~ $1 --)) { ..." +.De +The redundant inner parentheses must be omitted. +.PP Bug reports should be mailed to .Cr "<tjg@star.le.ac.uk>" . .SH INCOMPATIBILITIES @@ -2049,10 +2060,10 @@ being sourced. .SH "SEE ALSO" ``rc \(em A Shell for Plan 9 and UNIX Systems'', Unix Research System, -10th Edition, -vol. 2. (Saunders College Publishing) -(This paper is also distributed with this -.I rc -in PostScript form.) +Tenth Edition, +Volume 2. (Saunders College Publishing) +.PP +.Cr http://www.star.le.ac.uk/~tjg/rc/misc/td.html , +an updated version of the above paper. .PP .IR history (1)