1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-20 02:38:43 +00:00
freebsd/bin
Jilles Tjoelker c1564db05d sh: Recognize "--" in . and exec.
Although "--" historically has not been required to be recognized for
certain special builtins that do not take options in POSIX, some other
implementations recognize options for them, requiring scripts to use "--" or
avoid operands starting with "-".

Operands starting with "-" can be avoided with eval by prepending a space,
and cannot occur with break, continue, exit, return and shift as they only
take numbers, nor with times as it does not take operands. With . and exec,
avoiding "-" is not so easy as it may require reimplementing the PATH
search; therefore the current proposal for POSIX is to require recognition
of "--" for them.

We continue to accept other strings starting with "-" as operands to . and
exec, and also "--" if it is alone to . (which would otherwise be invalid
anyway).
2010-05-28 22:40:24 +00:00
..
cat
chflags
chio
chmod
cp Change all our own code to use st_*tim instead of st_*timespec. 2010-03-28 13:16:08 +00:00
csh
date Remove stale references to utmp(5) and its corresponding filenames. 2010-01-21 17:25:12 +00:00
dd
df
domainname
echo
ed ed(1): make WARNS=6 clean 2010-03-04 16:08:01 +00:00
expr
getfacl
hostname
kenv
kill Do not restrict the allowed signals that can be specified by number 2010-02-25 13:53:09 +00:00
ln symlink(7): Add lpathconf(2) and *at system calls. 2010-04-25 13:29:59 +00:00
ls Change all our own code to use st_*tim instead of st_*timespec. 2010-03-28 13:16:08 +00:00
mkdir
mv
pax Fix back references in substitute command for pax(1) 2010-05-24 06:33:14 +00:00
pkill The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-02 07:20:46 +00:00
ps Update the list of the process flags for P_WKILLED. 2010-04-13 08:54:53 +00:00
pwait mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
pwd
rcp Change all our own code to use st_*tim instead of st_*timespec. 2010-03-28 13:16:08 +00:00
realpath
rm
rmail Bump WARNS where possible. 2010-02-15 14:07:40 +00:00
rmdir
setfacl Update authors and history. 2010-05-13 16:46:23 +00:00
sh sh: Recognize "--" in . and exec. 2010-05-28 22:40:24 +00:00
sleep
stty
sync
test Change all our own code to use st_*tim instead of st_*timespec. 2010-03-28 13:16:08 +00:00
uuidgen
Makefile
Makefile.inc