Maybe my linux system have some problem. I have upgrade to the 4.3.46.
root@qemux86-64:~# /bin/bash test
test: line 3: 1055 Exit 142exit 142
1054 Hangup | false
142 129
root@qemux86-64:~# /bin/bash --version
GNU bash, version 4.3.46(1)-release (x86_64-poky
I used the strace tool to follow it. I touch a file named lastpipe just
contain:
shopt -s lastpipe
exit 142 | false
run command:
$ strace /bin/bash lastpipe
the output:
read(3, "shopt -s lastpipe\nexit 142 | fal"..., 80) = 35
lseek(3, 0, SEEK_SET) = 0
But when I run the test line by line, it's OK.
I used the version of bash is 4.3.30 on master branch, run the test on
the qemux86-64.
On 2016年08月10日 19:16, Chet Ramey wrote:
On 8/10/16 3:32 AM, dengke...@windriver.com wrote:
Hi all
When I run the bash test lastpipe.tests, there were some erro
On 8/12/16 4:14 AM, dengke...@windriver.com wrote:
> I used the strace tool to follow it. I touch a file named lastpipe just
> contain:
>
> shopt -s lastpipe
> exit 142 | false
>
> run command:)$ ./bash --version
OK.
$ ./bash --version
GNU bash, version 4.3.46(3)-release (x86_64-unknown
On 8/12/16 4:06 AM, dengke...@windriver.com wrote:
> But when I run the test line by line, it's OK.
>
> I used the version of bash is 4.3.30 on master branch, run the test on
> the qemux86-64.
The current version of bash on the master branch is 4.3.46.
--
``The lyf so short, the craft so long t
On 8/10/16 3:32 AM, dengke...@windriver.com wrote:
> Hi all
>
> When I run the bash test lastpipe.tests, there were some errors occurred.
>
> The code in lastpipe.tests:
>
> shopt -s lastpipe
> ...
> exit 142 | false
> echo $? -- ${PIPESTATUS[@]}
>
> The error output:
>
> l