Skip to content

Commit 6588087

Browse files
Pull up following revision(s) (requested by kre in ticket #37):
bin/sh/option.list: revision 1.12 PR bin/59646 option.list wsp consistency Be consistent with use of tab/space in fields used as sort keys, so versions of sort which might not behave exactly as we expect should still produce the same results.
1 parent b3d3a9d commit 6588087

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

bin/sh/option.list

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: option.list,v 1.11 2024/10/14 08:27:53 kre Exp $ */
1+
/* $NetBSD: option.list,v 1.11.2.1 2025/10/01 15:15:33 martin Exp $ */
22

33
/*
44
* define the shell's settable options
@@ -26,6 +26,8 @@
2626
* if absent, default is 0
2727
* only 0 or 1 possible (0==off 1==on) ("on" and "off" can be used)
2828
*
29+
* NB: Use only tabs to separate fields 1..3 (spaces can be used for 4 & 5)
30+
*
2931
* Data may be followed by any C preprocessor #if expression (incl the #if..)
3032
* (including #ifdef #ifndef) to conditionalise output for that option.
3133
* The #if expression continues until \n or next following '#'
@@ -66,8 +68,8 @@ pflag nopriv p # preserve privs if set[ug]id
6668
posix posix # be closer to POSIX compat
6769
qflag quietprofile q # disable -v/-x in startup files
6870
fnline1 local_lineno L on # number lines in funcs starting at 1
69-
promptcmds promptcmds # allow $( ) in PS1 (et al).
70-
pipefail pipefail # pipe exit status
71+
promptcmds promptcmds # allow $( ) in PS1 (et al).
72+
pipefail pipefail # pipe exit status
7173
Xflag xlock X #ifndef SMALL # sticky stderr for -x (implies -x)
7274

7375
// editline/history related options ("vi" is standard, 'V' and others are not)

0 commit comments

Comments
 (0)