aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-redir (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ash: fix open fds leaking in redirects. Closes 9561Denys Vlasenko2017-01-102-0/+16
| | | | | | | | | | | | | | | commit e19923f6652a638ac39c84012e97f52cf5a7568e deleted clearredir() call in shellexec(): ash: [REDIR] Remove redundant CLOEXEC calls Upstream commit: Now that we're marking file descriptors as CLOEXEC in savefd, we no longer need to close them on exec or in setinputfd. but it missed one place where we don't set CLOEXEC. Fixing this. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sh testsuite: sync ash-redir/ and hush-redir/Denys Vlasenko2016-10-026-0/+115
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sh testsuite: create hush-redir/* and move files aroundDenys Vlasenko2016-10-026-0/+91
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash testsuite: remove two more inadvertent bashismsDenys Vlasenko2016-10-012-7/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix a bug in >${varexp} handling. Closes 5282Denys Vlasenko2012-06-092-0/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* echo: do not retry on write errorsDenys Vlasenko2011-02-071-0/+1
| | | | | | | | | | | | | function old new delta echo_main 297 336 +39 stpcpy - 22 +22 run_pipe 1561 1566 +5 pseudo_exec_argv 187 192 +5 hush_exit 75 80 +5 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 4/0 up/down: 98/0) Total: 76 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: add a testcase for bug 2281 (currently fails). Small code cleanups.Denys Vlasenko2010-08-051-0/+0
| | | | | | | | | | | function old new delta changepath 195 192 -3 subevalvar 1204 1200 -4 readtoken1 3247 3240 -7 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-14) Total: -14 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: <> redir should not truncateAndreas Bühmann2010-06-242-0/+6
| | | | | Signed-off-by: Andreas Bühmann <buehmann@users.berlios.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix testsuite false positivesDenys Vlasenko2010-05-183-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add a testcase for reopened bug 585 (not fixed yet)Denys Vlasenko2009-09-163-1/+21
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: add testsuite for bug 585Denys Vlasenko2009-08-292-0/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix "(cat < file)" hang introduced by rev 22944.Denis Vlasenko2008-08-162-0/+5
|
* ash: testsuite entries for last changeDenis Vlasenko2008-07-252-0/+5
|
* ash: prevent exec NN>&- from closing fd used for script readingDenis Vlasenko2008-07-242-0/+73
|
* ash: fix a bug where redirection fds were not closed afterwards.Denis Vlasenko2008-07-244-0/+14
| | | | | | | | | | | | | optimize close+fcntl(DUPFD) into dup2. add testsuites. function old new delta copyfd 47 68 +21 argstr 1311 1298 -13 popredir 148 131 -17 redirect 1139 1107 -32 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 21/-62) Total: -41 bytes
* reinstate redir.tests with correct permsDenis Vlasenko2008-02-131-0/+6
|
* ash: add a testcase for recently fixed signal bugDenis Vlasenko2008-02-131-6/+0
|
* ash: fix bug where redirection of closed fd was leaving it open afterwards.Denis Vlasenko2007-11-222-0/+7
redirect 983 1024 +41 bb_echo 276 301 +25 popredir 118 132 +14 evalcommand 1163 1176 +13 bbunpack 358 366 +8 echocmd 13 5 -8 echo_main 13 5 -8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/2 up/down: 101/-16) Total: 85 bytes text data bss dec hex filename 774999 962 9236 785197 bfb2d busybox_old 775084 962 9236 785282 bfb82 busybox_unstripped