NetBSD/bin
kre be0a98abf6 I noticed!
POSIX requires that the output of the "set" command (with no args -- it
gives a list of variables, and their values) be sorted according to
the collating sequence defined by the current locale.

Now I'm not aware of any locale where the collating sequence order of
ascii letters, digits, and '_' are any different than they are in the
C locale (and those are the only characters that can occur in variable
names - unless there is perhaps a locale that defines "dictionary" order
as the sort order) but never mind, that isn't the bug...

What "collating sequence order" does mean however, if not "collating
sequence order, except when we happen to have two variable names, where
one name is a prefix of the other (say X and XY) and the first character
of the 'Y' part of the longer name happens to be a digit..."

"set" is not a frequently used command (particularly in scripts where
it matters - that is, the no args form, nothing here alters anything
about any use of set with args) and is already a bit slow (sluggish...)
because of the sort requirement, so let's make it fractionally even
slower, but correct.
2017-05-10 06:18:43 +00:00
..
cat When invoked with -se, print a '$' on blank lines 2016-06-16 00:52:37 +00:00
chio Move the description of CHANGER variable to ENVIRONMENT section 2016-08-25 18:16:10 +00:00
chmod Document the version chmod first appeared. 2016-08-11 00:10:42 +00:00
cp Document the version cp first appeared. 2016-08-11 00:17:23 +00:00
csh switch to a backtracking instead of a recursive pattern matcher. 2017-04-27 18:50:34 +00:00
date The range of the SS field is [0,60] 2017-01-03 16:01:05 +00:00
dd Drop main() prototype. 2016-09-05 01:00:07 +00:00
df Bump date 2016-08-10 23:48:14 +00:00
domainname Use __dead 2011-08-29 14:51:17 +00:00
echo Drop main() prototype. 2016-09-05 01:00:07 +00:00
ed PR/50879: David Binderman: remove redundant code. 2016-03-02 19:11:28 +00:00
expr Drop main() prototype. 2016-09-05 01:00:07 +00:00
hostname Remove options added in 1.18, commitid: UhxHPgtT2Pzeg4Yw due to some 2014-02-13 12:00:29 +00:00
kill Clarify 0 2017-04-22 23:01:36 +00:00
ksh PR/52210: David H. Gutteridge: revert var pattern handling. 2017-05-03 00:41:34 +00:00
ln When called as "link" (not currently installed that way) always simply 2017-04-22 12:22:31 +00:00
ls white space 2017-02-06 21:06:04 +00:00
mkdir Grammar 2016-08-10 18:42:00 +00:00
mt Adjust for mandoc output. 2012-03-19 10:48:20 +00:00
mv Forgot to bump date with previous commit 2016-08-10 18:08:14 +00:00
pax Document the version pax first appeared. 2016-08-12 01:52:22 +00:00
ps simplify logic; there must be no CPU usage when p_swtime is zero 2016-12-26 20:52:39 +00:00
pwd Document the version pwd first appeared. 2016-08-12 02:03:26 +00:00
rcmd Sort options in SYNOPSIS, sort option descriptions, remove some extra 2011-05-31 11:31:10 +00:00
rcp allocate a separate buffer in each call to sink(). 2012-05-07 15:22:54 +00:00
rm Document the version rm first appeared. 2016-08-12 02:26:42 +00:00
rmdir Document the version rmdir first appeared. 2016-08-12 02:30:37 +00:00
sh I noticed! 2017-05-10 06:18:43 +00:00
sleep Document the version sleep first appeared. 2016-08-12 02:36:38 +00:00
stty need <time.h> for time(3) 2017-01-10 20:44:05 +00:00
sync Drop main() prototype. 2016-09-05 01:00:07 +00:00
test Drop main() prototype. 2016-09-05 01:00:07 +00:00
Makefile
Makefile.inc Default to WARNS=5 2012-03-21 05:47:53 +00:00