|
From: | Clark Wang |
Subject: | Re: Strange bash behavior |
Date: | Fri, 2 Dec 2016 12:59:37 +0800 |
Hi,
I'm not sure what is going on, but the bash test suite was getting
stopped (as if SIGSTOP was received) in the middle. Trying to find
minimal set of conditions it came to this:
- my ~/.bashrc has to contain 'cd /' (any dir works)
- the tests have to first execute run-execscript, namely it has to
execute exec6.sub, namely the line ${THIS_SH} -i ./exec8.sub
- the file exec8.sub is reported as not found (I presume because of the
'cd /' in .bashrc)
- the tests then have to run read-test, exactly in read2.sub when
'read -t 2 a < /dev/tty' was executed whole thing was stopped
When I removed the 'cd' command from my ~/.bashrc, all worked fine.
I then tried to make minimal reproducible case and came to this (this
time there is no 'cd /' in my ~/.bashrc needed):
$ bash -c 'bash -i i; bash -i i'
bash -c 'bash -i i; bash -i i'
bash: i: No such file or directory
[1]+ Stopped bash -c 'bash -i i; bash -i i'
[Prev in Thread] | Current Thread | [Next in Thread] |