freebsd-nq/bin
Martin Cracauer bd80d26f3b PR 28852
sh -e behaviour was incorrect when && and || statements where used in
"if" clauses.

This is the patch submitted by MORI Kouji <mori@tri.asanuma.co.jp>.

It fixes the issue at hand, but sh fixes like this are super-hard to
verify that they don't break anything else.  I ran some of my old test
cases and a few big GNU configure scripts that detected mistakes
before, with the previous sh, patched sh and bash.  No differences in
behaviour found.  MFC recommended after longer than usual time.

Compiles on i386 and sledge.
2003-12-28 02:05:12 +00:00
..
cat We have to hide copyright[] for gcc33. :-( 2003-04-30 17:40:28 +00:00
chflags mdoc(7) police: Fix document date. 2003-05-16 21:18:01 +00:00
chio Quiet warnings about copyright[]. 2003-05-01 16:58:57 +00:00
chmod Print unambiguous paths with -R -v. 2003-12-16 15:17:30 +00:00
cp Don't mmap(2) and munmap(2) zero-length files. 2003-11-13 05:26:55 +00:00
csh Temporarily turn off -Werror for these components. 2003-07-11 05:24:32 +00:00
date Check for write errors; report and exit with error value. 2003-10-04 07:16:40 +00:00
dd Get this area compiling with the highest WARNS= that it works with. 2003-06-13 07:04:02 +00:00
df Fix format strings (intmax_t is %jd, not %qd) 2003-11-12 21:47:42 +00:00
domainname Quiet warnings about copyright[]. 2003-05-01 16:58:57 +00:00
echo - Check and report write(2) errors. 2003-10-11 20:34:43 +00:00
ed Don't check for the existance of src/crypto/ for building items that 2003-07-24 18:30:25 +00:00
expr Get this area compiling with the highest WARNS= that it works with. 2003-06-13 07:04:02 +00:00
getfacl Grammar. 2003-02-23 01:43:45 +00:00
hostname Quiet warnings about copyright[]. 2003-05-01 16:58:57 +00:00
kenv Get this area compiling with the highest WARNS= that it works with. 2003-06-13 07:04:02 +00:00
kill Quiet warnings about copyright[]. 2003-05-01 16:58:57 +00:00
ln Quiet warnings about copyright[]. 2003-05-01 16:58:57 +00:00
ls Do something sensible if both -h and -k are given. 2003-12-01 19:10:29 +00:00
mkdir Quiet warnings about copyright[]. 2003-05-01 16:58:57 +00:00
mv Centralize _PATH_* definitions. 2003-05-05 22:49:23 +00:00
pax Get this area compiling with the highest WARNS= that it works with. 2003-06-13 07:04:02 +00:00
ps mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
pwd Rename a local variable in order to avoid collision with standard 'log' 2003-06-30 17:05:40 +00:00
rcp Turn malloc+snprintf into asnprintf. 2003-10-14 20:42:13 +00:00
realpath realpath(3) should use PATH_MAX instead of MAXPATHLEN according to POSIX. 2003-01-15 21:22:55 +00:00
rm When the P flag is set (i.e. Overwrite regular files before deleting them), 2003-11-10 09:40:18 +00:00
rmail Remove MAINTAINER= lines from individual Makefiles in favor of the 2003-07-07 03:54:04 +00:00
rmdir Quiet warnings about copyright[]. 2003-05-01 16:58:57 +00:00
setfacl Add additional documentation to setfacl(1) regarding the behavior of 2003-08-07 14:52:17 +00:00
sh PR 28852 2003-12-28 02:05:12 +00:00
sleep Fix warnings. This is now WARNS=9, std=c99 clean in i386. 2003-05-03 10:14:26 +00:00
stty Fix format warning. This is WARNS=9, std=c99 clean on i386. 2003-05-03 10:16:51 +00:00
sync Quiet warnings about copyright[]. 2003-05-01 16:58:57 +00:00
test Don't escape names in MLINKS: this won't work with bsd.man.mk,v 1.53. 2003-09-07 12:52:17 +00:00
uuidgen The uuidgen(1) program is WARNS=6 clean, so flag it as such. 2003-12-07 21:34:56 +00:00
Makefile chflags(1) repo copied, usr.bin->bin. 2003-02-18 19:51:59 +00:00
Makefile.inc Force a staticly linked /bin and /sbin for ia64. The necessary changes 2003-11-19 16:59:00 +00:00