document distributed with 4.3BSD
authorKevin Dunlap <kjd@ucbvax.Berkeley.EDU>
Sat, 24 May 1986 02:43:31 +0000 (18:43 -0800)
committerKevin Dunlap <kjd@ucbvax.Berkeley.EDU>
Sat, 24 May 1986 02:43:31 +0000 (18:43 -0800)
SCCS-vsn: bin/csh/USD.doc/csh.3 6.1

usr/src/bin/csh/USD.doc/csh.3

index e17aabb..cd22b9c 100644 (file)
@@ -2,7 +2,7 @@
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
-.\"    @(#)csh.3       5.1 (Berkeley) %G%
+.\"    @(#)csh.3       6.1 (Berkeley) %G%
 .\"
 .nr H1 2
 .NH
 .\"
 .nr H1 2
 .NH
@@ -203,7 +203,7 @@ set a=($<)
 .DE
 would write out the prompt `yes or no?' without a newline and then
 read the answer into the variable `a'.  In this case `$#a' would be
 .DE
 would write out the prompt `yes or no?' without a newline and then
 read the answer into the variable `a'.  In this case `$#a' would be
-`0' if either a blank line or end-of-file (\(uaD) was typed.
+`0' if either a blank line or end-of-file (^D) was typed.
 .PP
 One minor difference between `$\fIn\fR\|' and `$argv[\fIn\fR\|]'
 should be noted here.
 .PP
 One minor difference between `$\fIn\fR\|' and `$argv[\fIn\fR\|]'
 should be noted here.
@@ -425,15 +425,15 @@ the head `:h' or all but the last component of a pathname leaving the
 tail `:t'.
 These modifiers are fully described in the
 .I csh
 tail `:t'.
 These modifiers are fully described in the
 .I csh
-manual pages in the programmers manual.
+manual pages in the User's Reference Manual.
 It is also possible to use the
 .I "command substitution"
 mechanism described in the next major section to perform modifications
 It is also possible to use the
 .I "command substitution"
 mechanism described in the next major section to perform modifications
-on strings to then reenter the shells environment.
+on strings to then reenter the shell's environment.
 Since each usage of this mechanism involves the creation of a new process,
 Since each usage of this mechanism involves the creation of a new process,
-it is much more expensive to use than the `:' modification mechanism.#
+it is much more expensive to use than the `:' modification mechanism.\(dd
 .FS
 .FS
-#It is also important to note that
+\(dd It is also important to note that
 the current implementation of the shell limits the number of `:' modifiers
 on a `$' substitution to 1.
 Thus
 the current implementation of the shell limits the number of `:' modifiers
 on a `$' substitution to 1.
 Thus
@@ -532,13 +532,13 @@ inline data.
 Thus we need a metanotation for supplying inline data to commands in
 shell scripts.
 As an example, consider this script which runs the editor to
 Thus we need a metanotation for supplying inline data to commands in
 shell scripts.
 As an example, consider this script which runs the editor to
-delete leading blanks from the lines in each argument file
+delete leading blanks from the lines in each argument file:
 .DS
 % cat deblank
 # deblank \-\- remove leading blanks
 foreach i ($argv)
 ed \- $i << \'EOF\'
 .DS
 % cat deblank
 # deblank \-\- remove leading blanks
 foreach i ($argv)
 ed \- $i << \'EOF\'
-1,$s/\(ua[ ]*//
+1,$s/^[ ]*//
 w
 q
 \&\'EOF\'
 w
 q
 \&\'EOF\'
@@ -561,7 +561,7 @@ we needed to insure that this `$' was not variable substituted.
 We could also have insured this by preceding the `$' here with a `\e',
 i.e.:
 .DS
 We could also have insured this by preceding the `$' here with a `\e',
 i.e.:
 .DS
-1,\e$s/\(ua[ ]*//
+1,\e$s/^[ ]*//
 .DE
 but quoting the `EOF' terminator is a more reliable way of achieving the
 same thing.
 .DE
 but quoting the `EOF' terminator is a more reliable way of achieving the
 same thing.