freebsd-dev/bin
Stefan Farfeleder 85170a4a2a Implement some of the differences between special built-ins and other builtins
demanded by POSIX.
- A redirection error is only fatal (meaning the execution of a shell script is
  terminated) for special built-ins.  Previously it was fatal for all shell
  builtins, causing problems like the one reported in PR 88845.
- Variable assignments remain in effect for special built-ins.
- Option or operand errors are only fatal for special built-ins.
This change also makes errors from 'fc' non-fatal (I could not find any reasons
for this behaviour).

Somewhat independently from the above down-grade the error handling in the
shift built-in if the operand is bigger than $# from an error() call (which is
now fatal) to a return 1.  I'm not sure if this should be considered a POSIX
"operand error", however this change is needed for now as we trigger that error
while building libncurses.  Comparing with other shells, zsh does the same as
our sh before this change (write a diagnostic, return 1), bash behaves as our
sh after this commit (no diagnostic, return 1) and ksh93 and NetBSD's sh treat
it as a fatal error.
2006-04-09 12:21:20 +00:00
..
cat
chflags Use .Cm for all key words, not just the ones I added. More in line with 2006-03-10 12:37:19 +00:00
chio
chmod
cp
csh Fix spelling. 2006-03-19 19:10:39 +00:00
date -mdoc sweep. 2005-11-17 12:15:23 +00:00
dd
df
domainname
echo
ed Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00
expr
getfacl Add "-q" argument to getfacl(1), which suppresses the per-file header 2006-03-13 11:45:29 +00:00
hostname
kenv -mdoc sweep. 2005-11-17 12:15:23 +00:00
kill
ln Add '-F' option which allows to delete existing empty directories, when 2006-02-14 11:08:05 +00:00
ls Change the -S and -t options to override each other so that the last one 2006-03-24 17:09:03 +00:00
mkdir
mv
pax
ps Re-correct commit 1.73, but this time in a way that does not cause 2006-04-06 03:24:31 +00:00
pwd
rcp
realpath
rm -mdoc sweep. 2005-11-17 12:15:23 +00:00
rmail
rmdir
setfacl [mdoc] add missing space before a punctuation type argument. 2005-12-13 17:07:52 +00:00
sh Implement some of the differences between special built-ins and other builtins 2006-04-09 12:21:20 +00:00
sleep
stty
sync
test
uuidgen
Makefile Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00
Makefile.inc Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00