From 92aa0e13ad8cec37936998a66eb728bfca88d689 Mon Sep 17 00:00:00 2001 From: Larkin Nickle Date: Sat, 22 Feb 2020 16:26:25 -0500 Subject: Fix broken references to plan9.bell-labs.com/plan9 Fixes #357 --- man/man1/0intro.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'man') diff --git a/man/man1/0intro.1 b/man/man1/0intro.1 index f018fc8a..16134933 100644 --- a/man/man1/0intro.1 +++ b/man/man1/0intro.1 @@ -5,7 +5,7 @@ intro \- introduction to Plan 9 from User Space Plan 9 is a distributed computing environment built at Bell Labs starting in the late 1980s. The system can be obtained from Bell Labs at -.B http://plan9.bell-labs.com/plan9 +.B http://9p.io/plan9 and runs on PCs and a variety of other platforms. Plan 9 became a convenient platform for experimenting with new ideas, applications, and services. -- cgit v1.2.3 From 7d6a248f2c68d70f58387afc69e73e695c3d940c Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 4 May 2020 23:20:08 -0400 Subject: rc: move free carat handling into parser This fixes at least one shell script (printfont) that expected 'x'`{y}'z' to mean 'x'^`{y}^'z' as it now does. Before it meant: 'x'^`{y} 'z' One surprise is that adjacent lists get a free carat: (x y z)(1 2 3) is (x1 y2 z3) This doesn't affect any rc script in Plan 9 or plan9port. --- man/man1/rc.1 | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) (limited to 'man') diff --git a/man/man1/rc.1 b/man/man1/rc.1 index 7ea8998a..df7af05b 100644 --- a/man/man1/rc.1 +++ b/man/man1/rc.1 @@ -290,28 +290,10 @@ then one operand must have one component, and the other must be non-empty, and concatenation is distributive. .PD .SS Free Carets -In most circumstances, -.I rc +.I Rc will insert the .B ^ operator automatically between words that are not separated by white space. -Whenever one of -.B $ -.B ' -.B ` -follows a quoted or unquoted word or an unquoted word follows a quoted word -with no intervening blanks or tabs, -a -.B ^ -is inserted between the two. -If an unquoted word immediately follows a -.BR $ -and contains a character other than an alphanumeric, underscore, -or -.BR * , -a -.B ^ -is inserted before the first such character. Thus .IP .B cc -$flags $stem.c @@ -367,7 +349,7 @@ or .I Fd1 is a previously opened file descriptor and .I fd0 -becomes a new copy (in the sense of +becomes a new copy (in the sense of .IR dup (3)) of it. A file descriptor may be closed by writing @@ -477,7 +459,7 @@ is executed. The .I command is executed once for each -.IR argument +.IR argument with that argument assigned to .IR name . If the argument list is omitted, @@ -982,8 +964,6 @@ changes .PP Functions that use here documents don't work. .PP -Free carets don't get inserted next to keywords. -.PP The .BI <{ command } syntax depends on the underlying operating system -- cgit v1.2.3 From ff74f7cdda7b08da6fe7c8bbcca990305fd6b547 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 4 May 2020 23:31:59 -0400 Subject: rc: allow unquoted = in command arguments dd fans rejoice! Also helps with commands like go test -run=x. --- man/man1/rc.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'man') diff --git a/man/man1/rc.1 b/man/man1/rc.1 index df7af05b..add334fa 100644 --- a/man/man1/rc.1 +++ b/man/man1/rc.1 @@ -109,7 +109,7 @@ The simplest kind of argument is the unquoted word: a sequence of one or more characters none of which is a blank, tab, newline, or any of the following: .EX - # ; & | ^ $ = ` ' { } ( ) < > + # ; & | ^ $ ` ' { } ( ) < > .EE An unquoted word that contains any of the characters .B * -- cgit v1.2.3 From b962b25ecaf6ddb11a36235d4a9849a147b4f6a3 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 5 May 2020 08:35:48 -0400 Subject: rc(1): mention /etc/shells in BUGS section --- man/man1/rc.1 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'man') diff --git a/man/man1/rc.1 b/man/man1/rc.1 index add334fa..792cdc95 100644 --- a/man/man1/rc.1 +++ b/man/man1/rc.1 @@ -989,3 +989,9 @@ and then .B fstab ensures causes FreeBSD to mount the file system automatically at boot time.) +.PP +Some systems require +.B \*9/bin/rc +to be listed in +.B /etc/shells +before it can be used as a login shell. -- cgit v1.2.3