aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2006-01-01 16:02:12 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2006-01-01 16:02:12 +0000
commit7d1a55fc97a9a55a48e2ac0605e2ccfc2e7ebb4a (patch)
treeabef11100f0dfc33610537ce0aecb1a69c601a3b /bin
parent0606b9944a0af7e146ee9aabb929d7d6f9b9be58 (diff)
downloadsrc-7d1a55fc97a9a55a48e2ac0605e2ccfc2e7ebb4a.tar.gz
src-7d1a55fc97a9a55a48e2ac0605e2ccfc2e7ebb4a.zip
Document that '#' starts a comment.
PR: 85103 Submitted by: garys Obtained from: pdksh manual Patch from: Daniel Gerzo (with changes by me)
Notes
Notes: svn path=/head/; revision=153951
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/sh.17
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1
index 6fa59ede50c2..3c2fa9c356c0 100644
--- a/bin/sh/sh.1
+++ b/bin/sh/sh.1
@@ -362,6 +362,13 @@ The following is a list of valid operators:
.It Li <& Ta Li >& Ta Li <<- Ta Li >|
.El
.El
+.Pp
+The character
+.Ql #
+introduces a comment if used at the beginning of a word.
+The word starting with
+.Ql #
+and the rest of the line are ignored.
.Ss Quoting
Quoting is used to remove the special meaning of certain characters
or words to the shell, such as operators, whitespace, keywords,