NetBSD/bin
aymeric d5d0c11532 Make the -s flag of fc work correctly. Ensure that only one command is specified
and ensure that we break out of the loop after executing it.
With the previous code, because the re-executed command was added to the
history, it would think that it still had to execute it, leading to an infinite
loop.

The last thing which differs from ksh is that we get the "fc -s " command into
the history, but this is actually rather a feature in my humble opinion.

To test:
$ echo hello
$ fc -s ec
<infinite loop or correct behaviour>
2006-03-06 00:09:22 +00:00
..
cat PR/32931: Johan Veenhuizen: cat(1) does not clear the EOF indicator for 2006-02-26 19:44:24 +00:00
chio appease gcc -Wuninitialized 2005-06-01 15:12:18 +00:00
chmod Add xref to chflags(1). From Andre Luiz de Oliveira in PR 32265. 2005-12-09 20:27:02 +00:00
cp - Better detect pathname overflow (from FreeBSD) 2005-11-16 22:42:12 +00:00
csh sprinkle a little const, and now everything compiles with WARNS=3 2005-06-26 19:10:48 +00:00
date More minor cleanup: 2005-07-22 14:27:08 +00:00
dd Bump date for progress=n description change. 2006-01-12 21:42:11 +00:00
df PR/23688: don't say we're printing in 1k-blocks if -h was also specified. 2006-01-13 14:07:57 +00:00
domainname Drop extra space. 2004-06-15 14:08:33 +00:00
echo
ed sprinkle a little const, and now everything compiles with WARNS=3 2005-06-26 19:10:48 +00:00
expr appease gcc -Wuninitialized 2005-06-01 15:12:18 +00:00
hostname
kill
ksh Fix typos, reported by Alexey Dobriyan ("Gathered from Linux"), 2006-02-25 00:58:34 +00:00
ln sprinkle a little const, and now everything compiles with WARNS=3 2005-06-26 19:10:48 +00:00
ls Somehow missed this in the last commit, where I only changed the commentary 2005-10-31 14:13:33 +00:00
mkdir Fix setmode error handling. 2005-10-01 20:22:29 +00:00
mt - Whitespace nit. 2005-06-17 14:27:18 +00:00
mv the case of waitpid() returning an error was already tested, and errno 2005-06-03 13:55:04 +00:00
pax Ensure we exit with an error if we don't actually do anything. 2006-02-11 11:04:57 +00:00
ps add "uaddr" and improve text for "laddr". 2005-11-11 17:06:22 +00:00
pwd
rcmd sprinkle a little const, and now everything compiles with WARNS=3 2005-06-26 19:10:48 +00:00
rcp sprinkle a little const, and now everything compiles with WARNS=3 2005-06-26 19:10:48 +00:00
rm Sort sections, bump date for previous, and add a comma after e.g.. 2004-03-24 11:37:07 +00:00
rmdir
sh Make the -s flag of fc work correctly. Ensure that only one command is specified 2006-03-06 00:09:22 +00:00
sleep PR/27140: "sleep time" doesn't error out. 2005-10-17 10:11:46 +00:00
stty sprinkle a little const, and now everything compiles with WARNS=3 2005-06-26 19:10:48 +00:00
sync
systrace Give systrace its own version of realpath() that does what it wants, 2005-12-31 12:33:41 +00:00
test KNF, use NULL instead of (type *)0. 2005-02-10 06:56:55 +00:00
Makefile
Makefile.inc sprinkle a little const, and now everything compiles with WARNS=3 2005-06-26 19:10:48 +00:00