Hi,

during testing of latest bash on Solaris I found strange behavior. We
run the tests with clear environment (env -). It seems to be caused by
undefined SHELL variable. The test reported

150,151c150,151
< ./redir11.sub: line 26: echo: write error: Bad file number
< ./redir11.sub: line 27: echo: write error: Bad file number
---
> ./redir11.sub: line 26: $(a=4 foo): Bad file number
> ./redir11.sub: line 27: $(a=4 foo): Bad file number


As a workaround I am using the attached patch although I don't feel that
it looks like a proper fix. Maybe it's a thing worth investigating? Can
you reproduce the issue?

Thank you
-- 
        Vlad
When SHELL is unset the test fails with

150,151c150,151
< ./redir11.sub: line 26: echo: write error: Bad file number
< ./redir11.sub: line 27: echo: write error: Bad file number
---
> ./redir11.sub: line 26: $(a=4 foo): Bad file number
> ./redir11.sub: line 27: $(a=4 foo): Bad file number

--- tests/redir.tests   2016-12-01 11:20:04.910983199 +0000
+++ tests/redir.tests   2016-12-01 11:19:34.114069067 +0000
@@ -1,7 +1,7 @@
 : ${TMPDIR:=/tmp}
 
 export LC_ALL=C
-export LANG=C
+export LANG=C; export SHELL=
 
 # catch-all for remaining untested redirection stuff
 set +o posix

Reply via email to