NetBSD/bin
christos 0598afe4d0 Fix switch alias handling. Inspired from FreeBSD, but corrected to handle
alias expansion inside the switch as appropriate. This is achieved by a
flag noalias which is turned on and off in as we parse. In the following
example [1] and [0] indicate the value of noalias.

[0] case <expr> in
[1] <lit> ) [0] <expr> ;;
[1] <lit> ) [0] <expr> ;;
...
[1] esac [0]

FreeBSD does:

[0] case <expr> in [1]
<lit> ) <expr> ;;
<lit> )  <expr> ;;
...
esac [0]

This handles the following shell script:

alias a=ls

case $1 in
a)	echo a;
	a;;
f)	echo f;;
*)	echo default;;
esac
2001-11-02 23:49:14 +00:00
..
cat Some KNF, via patch by Petri Koistinen in private mail. 2001-09-16 12:12:13 +00:00
chio Add setprogname call. Patch from Petri Koistinen. 2001-09-16 12:13:33 +00:00
chmod ANSIfy, use {s,g}etprogname and other KNF. Patch by Petri Koistinen. 2001-09-16 12:16:20 +00:00
cp ANSIfication and some KNF fixes by Petri Koistinen from bin/13681. 2001-09-13 09:53:59 +00:00
csh Whitespace, punctuation fixes. Sort sections. 2001-10-17 21:50:57 +00:00
date Use setprogname. Patch by Petri Koistinen. 2001-09-16 13:35:52 +00:00
dd seperate -> separate 2001-07-22 13:33:58 +00:00
df if -a is not given, we need to walk the filesystem list to check the 2001-10-11 16:31:33 +00:00
domainname Update to reflect reality - s,/etc/netstart,/etc/rc.d/network, 2001-02-27 17:47:22 +00:00
echo ANSIfy, KNF. Parts from #13590 by Petri Koistinen. 2001-07-29 22:36:11 +00:00
ed remove redundant declaration of errmsg 2001-01-07 05:41:20 +00:00
expr Quote `:' correctly. 2001-10-18 11:00:03 +00:00
hostname ANSIfy and KNF fixes, use {g,s}etprogname. Patch by Petri Koistinen. 2001-09-16 13:48:35 +00:00
kill Use {g,s}etprogname. Patch by Petri Koistinen. 2001-09-16 13:55:09 +00:00
ksh Bring in pdksh-5.2.14-patches.2. 2001-09-29 15:05:47 +00:00
ln ANSIfy, KNF, by Petri Koistinen. 2001-09-16 22:14:40 +00:00
ls enable WARNS?= 2 2001-10-19 00:59:07 +00:00
mkdir ANSIfy, KNF, use [gs]etprogname. By Petri Koistinen. 2001-09-16 22:07:14 +00:00
mt ANSIfy, KNF, use [gs]etprogname. Patch by Petri Koistinen. 2001-09-16 21:57:34 +00:00
mv ANSIfy, KNF, use [gs]etprogname. By Petri Koistinen, slightly modified by me. 2001-09-16 21:53:55 +00:00
pax Whitespace nits, sort sections, fix Dv usage (doesn't like macro argument). 2001-10-28 19:03:12 +00:00
ps fix comment: "[]" are [square] brackets, "<>" are angle brackets 2001-08-24 06:37:03 +00:00
pwd ANSIfy, KNF, use [gs]etprogname. By Petri Koistinen. 2001-09-16 22:07:14 +00:00
rcmd Xref kerberos 8, not 3. 2001-04-03 10:53:45 +00:00
rcp va_{start,end} audit: 2001-09-24 13:22:25 +00:00
rm ANSIfy, KNF, [gs]etprogname, by Petri Koistinen. 2001-09-16 21:24:54 +00:00
rmdir ANSIfy, KNF, [gs]etprogname. By Petri Koistinen. 2001-09-16 21:21:14 +00:00
sh Fix switch alias handling. Inspired from FreeBSD, but corrected to handle 2001-11-02 23:49:14 +00:00
sleep ANSIfy and KNF by Petri Koistinen. 2001-09-16 21:18:33 +00:00
stty For commands and utilities, use EXIT STATUS rather than RETURN VALUES as 2000-09-04 07:30:07 +00:00
sync ANSIfy, use setprogname. Patch by Petri Koistinen. 2001-09-16 18:57:45 +00:00
test Properly quote `[' as macro argument. 2001-10-17 21:14:45 +00:00
Makefile
Makefile.inc