1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-28 11:57:28 +00:00
freebsd/bin
Jilles Tjoelker ae7c0700dc sh: Fix break/continue/return sometimes not skipping the rest of dot script.
In our implementation and most others, a break or continue in a dot script
can break or continue a loop outside the dot script. This should cause all
further commands in the dot script to be skipped. However, cmdloop() did not
know about this and continued to parse and execute commands from the dot
script.

As described in the man page, a return in a dot script in a function returns
from the function, not only from the dot script. There was a similar issue
as with break and continue. In various other shells, the return appears to
return from the dot script, but POSIX seems not very clear about this.
2010-08-15 21:06:53 +00:00
..
cat
chflags
chio Zero struct before reading from it 2010-06-02 09:34:41 +00:00
chmod
cp Don't try to copy a socket after "xxx is a socket (not copied)." message. 2010-06-05 08:50:39 +00:00
csh
date Explain that setting an absolute day value can fail and that the month should 2010-06-04 06:56:58 +00:00
dd
df
domainname
echo
ed
expr
getfacl More mdoc nitpicking to improve compatibility to mdocml 2010-06-11 06:04:07 +00:00
hostname
kenv
kill kill: Stop processing if a syntactically invalid pid is encountered. 2010-07-29 16:40:45 +00:00
ln Spelling fixes. 2010-07-31 21:09:49 +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 Add -l to the synopsis 2010-07-12 01:58:46 +00:00
ps Fix alignment for the 'flags' label, and make more room for 'tdev'. 2010-07-24 15:37:36 +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
rmdir
setfacl Typo fix: s/ommited/omitted 2010-07-27 17:33:02 +00:00
sh sh: Fix break/continue/return sometimes not skipping the rest of dot script. 2010-08-15 21:06:53 +00:00
sleep Document the new argument parser for sleep(1) and SIGINFO behaviour. 2010-08-02 10:59:23 +00:00
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