| #
40ab82d3 |
| 06-Oct-2009 |
christos <christos@NetBSD.org> |
fix regression exit1: Don't exec the last command in a subshell if it has trap[0] (trap EXIT) set. Fork instead to give the shell a chance to execute the trap when it is done.
|
| #
8623c59a |
| 19-Jan-2009 |
christos <christos@NetBSD.org> |
Revert previous commit that fixes PR/36079 (shell misses exit trap), because the fix causes $! to point to the wrong process in pipelines, which is worse.
|
| #
ae1cc095 |
| 21-Dec-2008 |
christos <christos@NetBSD.org> |
PR/36079: M. Levinson: Disable the optimization of not forking for the last command in a subshell, otherwise we miss the exit trap.
|
| #
bc4eb9bd |
| 31-Oct-2008 |
christos <christos@NetBSD.org> |
show better quoting output for sh -x, from Aleksey Cheusov
|
| #
9cae530b |
| 26-May-2008 |
tron <tron@NetBSD.org> |
Revert revisions 1.91 and 1.92. The POSIX spec about the correct behaviour is contradictory at best. And these changes seem to cause more problems that they are worth.
|
| #
4d6f948f |
| 24-May-2008 |
tron <tron@NetBSD.org> |
Fix two more cases of bad handling of "set -e": - false && false - false || false
|
| #
c2987416 |
| 24-May-2008 |
tron <tron@NetBSD.org> |
Fix another problem with "set -e": "! true" should terminate the shell.
|
| #
35fbf8dd |
| 24-May-2008 |
tron <tron@NetBSD.org> |
Port revision 1.44 of "src/bin/sh/eval.c" from FreeBSD to fix PR bin/38584. Reviewed by Michael van Elst.
|
| #
4498b1fe |
| 15-Feb-2008 |
matt <matt@NetBSD.org> |
Fix inconsistent definitions
|
| #
27293760 |
| 16-Oct-2006 |
christos <christos@NetBSD.org> |
sprinkle volatile.
|
| #
e80f354d |
| 13-May-2006 |
christos <christos@NetBSD.org> |
Coverity CID 3384: Don't close -1.
|
| #
da09d1a8 |
| 18-Apr-2006 |
christos <christos@NetBSD.org> |
PR/33281: Martin J. Laubach: Prevent core-dump on "echo abc | { }". bash prints and error and ksh prints nothing. We go the ksh way.
|
| #
df8cbb18 |
| 17-Mar-2006 |
christos <christos@NetBSD.org> |
Coverity CID 2479: Clarify confusion about uninitialized variable in the presence of setjmp/vfork.
|
| #
b61c2197 |
| 23-Jun-2005 |
christos <christos@NetBSD.org> |
Revert part of the previous commit. We cannot fix the problem by not waiting. The problem is that the subshell code is not doing redirections properly.
|
| #
306d33d1 |
| 22-Jun-2005 |
christos <christos@NetBSD.org> |
Don't wait for a background job in a subshell when we are set to EV_EXIT. While I am here, call forkshell() explicitly FORK_FOO flags instead of depending in FORK_FG == 0 and FORK_BG == 1.
|
| #
50cde64b |
| 01-Jun-2005 |
lukem <lukem@NetBSD.org> |
Mark temp_path volatile so that it won't get clobbered after longjmp. (Also appeases gcc -Wuninitialized.)
|
| #
8693718b |
| 02-Mar-2005 |
dsl <dsl@NetBSD.org> |
Fix printing of invalid commandname after certain types of errors on builtins. Fixes bug bin/29410 in head. All of /bin/sh needs pulling up into 2.0
|
| #
027df12d |
| 30-Oct-2004 |
christos <christos@NetBSD.org> |
Pass WARNS=3
|
| #
1ccdf5da |
| 30-Jun-2004 |
mycroft <mycroft@NetBSD.org> |
Make "set -e" once again provide the behavior documented in the man page, which was unnecessarily changed in revision 1.50 while fixing other bugs. That is, exit the shell if the last command in a ||
Make "set -e" once again provide the behavior documented in the man page, which was unnecessarily changed in revision 1.50 while fixing other bugs. That is, exit the shell if the last command in a || or && compound statement is not short-circuited, and exits with a false status. I.e., the following will cause the shell to exit:
set -e false || false
While this is not the prescribed behavior in SUSv3, it is what our man page documents, and it is what all of the following implementations do:
NetBSD /bin/ksh (pdksh) bash zsh Solaris 9 /bin/sh Solaris 9 /usr/xpg4/bin/sh Solaris 9 /usr/bin/ksh Tru64 /bin/sh HP/UX 11 /bin/sh
The "standard" seems to be wrong in this instance.
show more ...
|
| #
c6cbc16d |
| 26-Jun-2004 |
dsl <dsl@NetBSD.org> |
Correctly apply IFS to unquoted text in ${x-text}. Fixes PR/26058 and the 'for i in ${x-a b c}; do ...' and ${x-'a b' c}. I can't find a PR for the latter problem. Regression test goind in shortly.
|
| #
e4a2a056 |
| 26-Jun-2004 |
dsl <dsl@NetBSD.org> |
No functional changes (intended). Rename some variables, add some comments, and restructure a little. In preparation for fixing "set ${x-a b c}" and friends.
|
| #
00a6315e |
| 30-Apr-2004 |
dsl <dsl@NetBSD.org> |
Ensure that fd 0, 1 and 2 are not used for the local end of pipelines. Fixes PR bin/25395
|
| #
edecd895 |
| 14-Nov-2003 |
dsl <dsl@NetBSD.org> |
Add '\n' to "fork failed" trace messages.
|
| #
b5b29542 |
| 07-Aug-2003 |
agc <agc@NetBSD.org> |
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22249, verified by myself.
|
| #
a69cd45b |
| 13-Jul-2003 |
itojun <itojun@NetBSD.org> |
use bounded string op
|