summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2004-11-05 14:56:32 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2004-11-05 14:56:32 +0000
commit5b54311749df3c0e3ed379cc3d3f490d505ea016 (patch)
tree68a10606fea2af3e56ce8a650dc64455e3eaf6f0 /bin
parentdbdbb49bc9274870d2aecaea15169c6d21d9f97e (diff)
incorrect markup was messing the description of IFS. i've rearranged it
slightly so that no one (me, most likely) falls for it again. also, make sh(1)'s IFS description a little more consistent.
Diffstat (limited to 'bin')
-rw-r--r--bin/ksh/ksh.15
-rw-r--r--bin/ksh/ksh.1tbl5
-rw-r--r--bin/ksh/sh.121
-rw-r--r--bin/ksh/sh.1tbl21
4 files changed, 28 insertions, 24 deletions
diff --git a/bin/ksh/ksh.1 b/bin/ksh/ksh.1
index 962c79aef69..164b9960978 100644
--- a/bin/ksh/ksh.1
+++ b/bin/ksh/ksh.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ksh.1,v 1.74 2004/11/03 19:19:39 jaredy Exp $
+.\" $OpenBSD: ksh.1,v 1.75 2004/11/05 14:56:31 jmc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -983,7 +983,8 @@ the sequence of characters
contains four fields:
.Sq A ,
.Sq B ,
-.Sq ,\&
+.Sq
+(an empty field),
and
.Sq D .
Note that if the
diff --git a/bin/ksh/ksh.1tbl b/bin/ksh/ksh.1tbl
index 89330a040b4..42000e8a14a 100644
--- a/bin/ksh/ksh.1tbl
+++ b/bin/ksh/ksh.1tbl
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ksh.1tbl,v 1.74 2004/11/03 19:19:39 jaredy Exp $
+.\" $OpenBSD: ksh.1tbl,v 1.75 2004/11/05 14:56:31 jmc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -983,7 +983,8 @@ the sequence of characters
contains four fields:
.Sq A ,
.Sq B ,
-.Sq ,\&
+.Sq
+(an empty field),
and
.Sq D .
Note that if the
diff --git a/bin/ksh/sh.1 b/bin/ksh/sh.1
index 36d354ae8a1..5da6b46b4ec 100644
--- a/bin/ksh/sh.1
+++ b/bin/ksh/sh.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sh.1,v 1.50 2004/10/28 04:55:52 jaredy Exp $
+.\" $OpenBSD: sh.1,v 1.51 2004/11/05 14:56:31 jmc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -803,7 +803,8 @@ and VAR is set to
the substitution for $VAR results in four fields:
.Sq A ,
.Sq B ,
-.Sq ,\&
+.Sq
+(an empty field),
and
.Sq D .
Note that if the
@@ -817,17 +818,17 @@ Also, note that the field splitting applies only to the immediate result of
the substitution.
Using the previous example, the substitution for $VAR:E
results in the fields:
-.Dq A ,
-.Dq B ,
-.Dq ,
+.Sq A ,
+.Sq B ,
+.Sq ,
and
-.Dq D:E ,
+.Sq D:E ,
not
-.Dq A ,
-.Dq B ,
-.Dq ,
+.Sq A ,
+.Sq B ,
+.Sq ,
and
-.Dq E .
+.Sq E .
This behavior is POSIX compliant, but incompatible with some other shell
implementations which do field splitting on the word which contained the
substitution or use
diff --git a/bin/ksh/sh.1tbl b/bin/ksh/sh.1tbl
index fc344d46af4..ab67ade1db2 100644
--- a/bin/ksh/sh.1tbl
+++ b/bin/ksh/sh.1tbl
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sh.1tbl,v 1.50 2004/10/28 04:55:52 jaredy Exp $
+.\" $OpenBSD: sh.1tbl,v 1.51 2004/11/05 14:56:31 jmc Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -803,7 +803,8 @@ and VAR is set to
the substitution for $VAR results in four fields:
.Sq A ,
.Sq B ,
-.Sq ,\&
+.Sq
+(an empty field),
and
.Sq D .
Note that if the
@@ -817,17 +818,17 @@ Also, note that the field splitting applies only to the immediate result of
the substitution.
Using the previous example, the substitution for $VAR:E
results in the fields:
-.Dq A ,
-.Dq B ,
-.Dq ,
+.Sq A ,
+.Sq B ,
+.Sq ,
and
-.Dq D:E ,
+.Sq D:E ,
not
-.Dq A ,
-.Dq B ,
-.Dq ,
+.Sq A ,
+.Sq B ,
+.Sq ,
and
-.Dq E .
+.Sq E .
This behavior is POSIX compliant, but incompatible with some other shell
implementations which do field splitting on the word which contained the
substitution or use