Module Name:    src
Committed By:   kre
Date:           Tue Jan 16 14:30:22 UTC 2024

Modified Files:
        src/bin/sh: sh.1

Log Message:
Remove an ancient incorrect notion which somehow survived intact for ages.
"$@" is (as it is in double quotes) not subject to field splitting.  "$@"
generates (potentially) multiple words, but field splitting has nothing
to do with it.

While here, rename the section from "White Space Splitting (Field Splitting)"
to simply be "Field Splitting" as white space is only relevant if it happens
to occur in IFS (which is the default case, but IFS can be anything, and
isn't required to contain any white space at all).


To generate a diff of this commit:
cvs rdiff -u -r1.258 -r1.259 src/bin/sh/sh.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/sh/sh.1
diff -u src/bin/sh/sh.1:1.258 src/bin/sh/sh.1:1.259
--- src/bin/sh/sh.1:1.258	Thu Oct 12 01:45:07 2023
+++ src/bin/sh/sh.1	Tue Jan 16 14:30:22 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: sh.1,v 1.258 2023/10/12 01:45:07 uwe Exp $
+.\"	$NetBSD: sh.1,v 1.259 2024/01/16 14:30:22 kre Exp $
 .\" Copyright (c) 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
 .\"
@@ -2299,14 +2299,11 @@ and
 .Dq \&[ .
 .\"
 .\"
-.Ss White Space Splitting (Field Splitting)
+.Ss Field Splitting
 .\"
 After parameter expansion, command substitution, and
 arithmetic expansion the shell scans the results of
 expansions and substitutions that did not occur in double quotes,
-and
-.Dq Li $@
-even if it did,
 for field splitting and multiple fields can result.
 .Pp
 The shell treats each character of the

Reply via email to