NetBSD/bin
kre fab2da9b21 PR bin/48498 PR bin/52426
Don't ignore unexpected reserved words after ';'
Don't allow any random token type as a case stmt pattern, only a word.
	Those are ancient ash bugs and do not affect correct scripts.

Don't ignore redirects in a case stmt list where the list is nothing but
redirects (if the pattern matches, the redirects should be performed).
	That was introduced when a redirect only case stmt list was allowed
	(older shells had generated a syntax error.)

Random cleanups/refactoring taken from or inspired by the FreeBSD sh
parser ...  use makename() consistently to create a NARG node - we
were using it in a couple of places but most NARG node creation was open
coded.  Introduce consumetoken() (from FreeBSD) to handle the fairly
common case where exactly one token type must come next, and we need to
check that, and skip past it when found (or error) and linebreak() (new)
to handle places where optional \n's are permitted.
Both previously open coded.

Simplify list() by removing its second arg, which was only ever used when
handling the end of a `` (old style command substitution).  Simply move
the code from inside list() to just after its call in the `` case (from
FreeBSD.)
2017-07-26 23:09:41 +00:00
..
cat Use Ex. 2017-07-04 06:46:51 +00:00
chio Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
chmod Use Ex. 2017-07-04 06:46:51 +00:00
cp Document the version cp first appeared. 2016-08-11 00:17:23 +00:00
csh Add a variant that passes the format, so that time(1) can use it. 2017-07-15 14:35:55 +00:00
date Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
dd Use Ex. 2017-07-04 06:46:51 +00:00
df Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
domainname
echo Use Ex. 2017-07-04 06:46:51 +00:00
ed Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
expr Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
hostname Remove options added in 1.18, commitid: UhxHPgtT2Pzeg4Yw due to some 2014-02-13 12:00:29 +00:00
kill Make arg parsing in kill POSIX compatible with POSIX (XBD 2.12) by 2017-06-26 22:09:16 +00:00
ksh Kill enough K&R cruft to build with clang again. 2017-07-01 23:12:08 +00:00
ln When called as "link" (not currently installed that way) always simply 2017-04-22 12:22:31 +00:00
ls Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
mkdir Use Ex. Remove superfluous Pp. 2017-07-04 06:49:35 +00:00
mt Adjust for mandoc output. 2012-03-19 10:48:20 +00:00
mv Use Ex. 2017-07-04 06:50:04 +00:00
pax Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
ps Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
pwd Use Ex. 2017-07-04 06:50:04 +00:00
rcmd Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
rcp allocate a separate buffer in each call to sink(). 2012-05-07 15:22:54 +00:00
rm Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
rmdir Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
sh PR bin/48498 PR bin/52426 2017-07-26 23:09:41 +00:00
sleep Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +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 Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
Makefile
Makefile.inc Default to WARNS=5 2012-03-21 05:47:53 +00:00