git: sh: Sync with FreeBSD
Peter Avalos
pavalos at crater.dragonflybsd.org
Wed Jul 31 11:42:53 PDT 2013
commit b1abb130dc3100539f3e1892b00b670204e945d6
Author: Peter Avalos <pavalos at dragonflybsd.org>
Date: Tue Jul 30 19:47:45 2013 -0700
sh: Sync with FreeBSD
* Recognize "--" and explicitly reject options in wait builtin.
* Mention possible ambiguities with $(( and ((.
* Write as much into the heredoc pipe as possible, to avoid forking.
* Don't modify exit status when break/continue/return passes !.
* Document a few expansions for the $PS1 and $PS2 environmental
variables.
* Don't consider jobs -s/-p as reporting the status of jobs.
* Improve error handling in read builtin.
* Use O_CLOEXEC and F_DUPFD_CLOEXEC instead of separate fcntl() call.
* Remove linked list of stack marks.
* Allow multiple operands in wait builtin.
* Return status 127 for unknown jobs in wait builtin.
* Do not read from stdin if an error occurs during -i -c cmd.
* Remove mkinit.
Obtained-from: FreeBSD
Summary of changes:
bin/sh/Makefile | 11 +-
bin/sh/TOUR | 31 +-
bin/sh/eval.c | 15 +-
bin/sh/eval.h | 4 +-
bin/sh/exec.c | 5 +-
bin/sh/expand.c | 15 +-
bin/sh/init.h | 40 ---
bin/sh/input.c | 37 +--
bin/sh/input.h | 7 +-
bin/sh/jobs.c | 86 +++--
bin/sh/main.c | 17 +-
bin/sh/memalloc.c | 27 +-
bin/sh/memalloc.h | 7 +-
bin/sh/miscbltin.c | 25 +-
bin/sh/mkinit.c | 470 ---------------------------
bin/sh/nodes.c.pat | 8 +-
bin/sh/output.c | 21 +-
bin/sh/parser.c | 25 +-
bin/sh/parser.h | 5 +-
bin/sh/redir.c | 37 ++-
bin/sh/redir.h | 3 +-
bin/sh/sh.1 | 64 +++-
bin/sh/shell.h | 3 +-
bin/sh/trap.c | 4 +-
tools/regression/bin/sh/builtins/break4.4 | 7 +
tools/regression/bin/sh/builtins/break5.4 | 12 +
tools/regression/bin/sh/builtins/eval6.0 | 5 +
tools/regression/bin/sh/builtins/local2.0 | 17 +
tools/regression/bin/sh/builtins/local3.0 | 26 ++
tools/regression/bin/sh/builtins/read7.0 | 5 +
tools/regression/bin/sh/builtins/wait10.0 | 5 +
tools/regression/bin/sh/builtins/wait8.0 | 7 +
tools/regression/bin/sh/builtins/wait9.127 | 3 +
tools/regression/bin/sh/execution/int-cmd1.0 | 3 +
tools/regression/bin/sh/execution/not1.0 | 4 +
tools/regression/bin/sh/execution/not2.0 | 6 +
36 files changed, 349 insertions(+), 718 deletions(-)
delete mode 100644 bin/sh/init.h
delete mode 100644 bin/sh/mkinit.c
create mode 100644 tools/regression/bin/sh/builtins/break4.4
create mode 100644 tools/regression/bin/sh/builtins/break5.4
create mode 100644 tools/regression/bin/sh/builtins/eval6.0
create mode 100644 tools/regression/bin/sh/builtins/local2.0
create mode 100644 tools/regression/bin/sh/builtins/local3.0
create mode 100644 tools/regression/bin/sh/builtins/read7.0
create mode 100644 tools/regression/bin/sh/builtins/wait10.0
create mode 100644 tools/regression/bin/sh/builtins/wait8.0
create mode 100644 tools/regression/bin/sh/builtins/wait9.127
create mode 100644 tools/regression/bin/sh/execution/int-cmd1.0
create mode 100644 tools/regression/bin/sh/execution/not1.0
create mode 100644 tools/regression/bin/sh/execution/not2.0
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b1abb130dc3100539f3e1892b00b670204e945d6
--
DragonFly BSD source repository
More information about the Commits
mailing list