HardenedBSD/bin
Jilles Tjoelker 00e8c94f25 Fix various cases with 3 or 4 parameters in test(1) to be POSIX compliant.
More precisely, this gives precedence to an interpretation not using the
'(', ')', '-a' and '-o' in their special meaning, if possible. For example,
it is now safe to write [ "$a" = "$b" ] and assume it compares the two
strings.

The man page already says that test(1) works this way, so does not need to
be changed.

Interpretation of input with more parameters tries a bit harder to find a
valid parse in some cases.

Add various additional test cases to TEST.sh.

PR:		standards/133369
Approved by:	ed (mentor)
2009-05-26 22:33:10 +00:00
..
cat cat(1) compiles fine at WARNS level 6. 2009-03-16 12:16:17 +00:00
chflags Fix chflags -h in various cases: do not use link target's flags as original. 2009-05-24 15:27:25 +00:00
chio When running a "chio return" operation using a physical source unit 2008-10-30 19:51:02 +00:00
chmod Make the Monty Python quote more google friendly instead of 2009-01-26 18:14:21 +00:00
cp Make 'struct acl' larger, as required to support NFSv4 ACLs. Provide 2009-05-22 15:56:43 +00:00
csh
date
dd Bump .Dd for r187609 2009-01-30 16:23:57 +00:00
df Implement -T option as found in Linux df(1). When given, file system type 2008-11-23 13:03:44 +00:00
domainname
echo Mark functions as __dead2 in order to help the LLVM static checker 2008-08-04 01:25:48 +00:00
ed
expr
getfacl
hostname
kenv o Fix a typo. Bump .Dd for the previous delta. 2009-01-13 18:25:56 +00:00
kill
ln Clean up a bit of confusing language and improve .Nd. 2009-01-13 15:24:35 +00:00
ls Add reference to strmode(3). 2009-04-13 15:29:14 +00:00
mkdir
mv Staticify symbols that will not be used in other 2008-07-19 00:13:26 +00:00
pax Before this fix, pax would stop the restore sequence for 2009-02-01 06:15:46 +00:00
pkill When finding processes, ignore ourself and our ancestors. It is almost 2009-05-17 04:34:14 +00:00
ps Fix elapsed (etime) field for swapped out processes in ps: 2009-05-24 15:32:34 +00:00
pwd
rcp Remove superfluous va_end which was left there in rev 1.38. 2008-10-28 17:15:46 +00:00
realpath Enhance realpath(1) in a number of ways: 2008-03-09 12:46:39 +00:00
rm Implement ^T support for rm: now it will report the next file it 2009-04-29 18:08:18 +00:00
rmail
rmdir
setfacl Fix double free in setfacl(1). Description from the author: 2008-09-06 13:17:35 +00:00
sh Parse 'cmd1 && ! cmd2 | cmd3' correctly, the bang should apply to the entire 2009-04-13 19:10:56 +00:00
sleep
stty Make stty(1) use tab0 and tab3 to handle tab completion. 2008-08-23 13:28:55 +00:00
sync
test Fix various cases with 3 or 4 parameters in test(1) to be POSIX compliant. 2009-05-26 22:33:10 +00:00
uuidgen uuidgen has been repo-copied from usr.bin/ to bin/ to match its "new" 2008-03-13 17:38:06 +00:00
Makefile pkill(1) first appeared in /usr/bin, but later it was moved to /bin 2008-08-31 14:27:59 +00:00
Makefile.inc