BSD 4_3 release
[unix-history] / usr / man / man1 / sh.1
index 82aad25..d1328ef 100644 (file)
@@ -1,4 +1,7 @@
-.TH SH 1 "7 February 1983"
+.\"    @(#)sh.1        6.3 (Berkeley) 5/5/86
+.\"
+.TH SH 1 "May 5, 1986"
+.AT 3
 .SH NAME
 sh, for, case, if, while, \fB:\fP, \fB.\fP, break, continue, cd, eval, exec, exit, export, login, read, readonly, set, shift, times, trap, umask, wait \- command language
 .SH SYNOPSIS
 .SH NAME
 sh, for, case, if, while, \fB:\fP, \fB.\fP, break, continue, cd, eval, exec, exit, export, login, read, readonly, set, shift, times, trap, umask, wait \- command language
 .SH SYNOPSIS
@@ -104,7 +107,7 @@ command is executed
 .I name
 is set to the next word in the
 .B for
 .I name
 is set to the next word in the
 .B for
-word list
+word list.
 If
 .BI in \ word
 \&...
 If
 .BI in \ word
 \&...
@@ -325,6 +328,10 @@ Internal field separators, normally
 .BR tab ,
 and
 .BR newline .
 .BR tab ,
 and
 .BR newline .
+.B IFS
+is ignored if 
+.I sh
+is running as root or if the effective user id differs from the real user id.
 .PD
 .RE
 .PP
 .PD
 .RE
 .PP
@@ -593,6 +600,14 @@ The following commands are executed in the shell process
 and except where specified
 no input output redirection is permitted for such commands.
 .TP
 and except where specified
 no input output redirection is permitted for such commands.
 .TP
+.B #
+For non-interactive shells, everything following the
+.B #
+is treated as a comment, i.e. the rest of the line is ignored.
+For interactive shells, the
+.B #
+has no special effect.
+.TP
 .B :
 No effect; the command does nothing.
 .PD 0
 .B :
 No effect; the command does nothing.
 .PD 0