267654 |
20-Jun-2014 |
gjb |
Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
225736 |
23-Sep-2011 |
kensmith |
Copy head to stable/9 as part of 9.0-RELEASE release cycle.
Approved by: re (implicit)
|
221461 |
04-May-2011 |
jilles |
sh: Detect an error for ${#var<GARBAGE>}.
In particular, this makes things like ${#foo[0]} and ${#foo[@]} errors rather than silent equivalents of ${#foo}.
PR: bin/151720 Submitted by: Mark Johnston Exp-run done by: pav (with some other sh(1) changes)
|
218320 |
05-Feb-2011 |
jilles |
sh: Do not try to execute binary files as scripts.
If execve() returns an [ENOEXEC] error, check if the file is binary before trying to execute it using sh. A file is considered binary if at least one of the first 256 bytes is '\0'.
In particular, trying to execute ELF binaries for the wrong architecture now fails with an "Exec format error" message instead of syntax errors and potentially strange results.
|
216870 |
01-Jan-2011 |
jilles |
sh: Check readonly status for assignments on regular builtins.
An error message is written, the builtin is not executed, nonzero exit status is returned but the shell does not abort.
This was already checked for special builtins and external commands, with the same consequences except that the shell aborts for special builtins.
Obtained from: NetBSD
|
216851 |
31-Dec-2010 |
jilles |
sh: Check if dup2 for redirection from/to a file succeeds.
A failure (e.g. caused by ulimit -n being set very low) is a redirection error.
Example: ulimit -n 9; exec 9<.
|
216398 |
12-Dec-2010 |
jilles |
sh: Fix some tests that used sh instead of ${SH} so they tested the wrong sh.
This was caused because these tests were committed after the sh -> ${SH} change but were created before.
|
214531 |
29-Oct-2010 |
jilles |
sh: Detect various additional errors in the parser.
Apart from detecting breakage earlier or at all, this also fixes a segfault in the testsuite. The "handling" of the breakage left an invalid internal representation in some cases.
Examples: echo a; do echo b echo `) echo a` echo `date; do do do`
Exp-run done by: pav (with some other sh(1) changes)
|
213738 |
12-Oct-2010 |
obrien |
Allow one to regression test 'sh' changes without having to install a potentially bad /bin/sh first.
|
207820 |
09-May-2010 |
jilles |
sh: Fix bug in assignment error test.
The test failed if the command returned nonzero exit status, and it really should return that.
|
205154 |
14-Mar-2010 |
jilles |
sh: Do not abort on a redirection error on a compound command.
Redirection errors on subshells already did not abort the shell because the redirection is executed in the subshell.
Other shells seem to agree that these redirection errors should not abort the shell.
Also ensure that the redirections will be cleaned up properly in cases like command eval '{ shift x; } 2>/dev/null'
Example: { echo bad; } </var/empty/x; echo good
|
205153 |
14-Mar-2010 |
jilles |
sh: Add test for redirection error on subshell (should not abort).
|
205138 |
13-Mar-2010 |
jilles |
sh: Do not abort on a redirection error if there is no command word.
Although simple commands without a command word (only assignments and/or redirections) are much like special builtins, POSIX and most shells seem to agree that redirection errors should not abort the shell in this case. Of course, the assignments persist and assignment errors are fatal.
To get the old behaviour portably, use the ':' special builtin. To get the new behaviour portably, given that there are no assignments, use the 'true' regular builtin.
|
205136 |
13-Mar-2010 |
jilles |
sh: Add test for assignment errors (e.g. trying to change a readonly var). We currently ignore readonly status for assignments before regular builtins and external programs (these assignments are not persistent anyway), so just check that the readonly variable really is not changed. The test depends on the command builtin changes for 'command :'.
|
204800 |
06-Mar-2010 |
jilles |
sh: Improve the command builtin: * avoid unnecessary fork * allow executing builtins via command * executing a special builtin via command removes its special properties
Obtained from: NetBSD (parts)
|
199955 |
29-Nov-2009 |
jilles |
Disable job control when running 'sh -i' in the testsuite.
Job control tty manipulations sometimes cause the tests to stop (SIGTTOU and the like) when run from the 'prove' tool.
|
197691 |
01-Oct-2009 |
jilles |
sh: Disallow mismatched quotes in backticks (`...`).
Due to the amount of code removed by this, it seems that allowing unmatched quotes was a deliberate imitation of System V sh and real ksh. Most other shells do not allow unmatched quotes (e.g. bash, zsh, pdksh, NetBSD /bin/sh, dash).
PR: bin/137657
|
194517 |
19-Jun-2009 |
jilles |
Add tests for r194406 and r194516.
Approved by: ed (mentor)
|
181022 |
30-Jul-2008 |
stefanf |
Add a regression test for r181017.
Submitted by: simon
|
180208 |
03-Jul-2008 |
peter |
Set magic fbsd:nokeywords property that allows files to bypass keyword expansion. (file-specific replacement for CVSROOT/exclude)
|
164004 |
05-Nov-2006 |
stefanf |
Add regression tests for PR 105078.
|
157415 |
02-Apr-2006 |
stefanf |
Add test cases that check utility syntax errors and redirection errors. For special built-in utilities they must terminate the shell, for other utilities only a error message shall be written. We currently fail both tests.
|