[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash test: lastpipe.tests failed
From: |
address@hidden |
Subject: |
Re: bash test: lastpipe.tests failed |
Date: |
Mon, 15 Aug 2016 17:00:15 +0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 |
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 142 exit 142
1054 Hangup | false
142 129
root@qemux86-64:~# /bin/bash --version
GNU bash, version 4.3.46(1)-release (x86_64-poky-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
root@qemux86-64:~# uname -a
Linux qemux86-64 4.4.14-yocto-standard #1 SMP PREEMPT Tue Aug 2 06:48:36
EDT 2016 x86_64 x86_64 x86_64 GNU/Linux
On 2016年08月12日 21:02, Chet Ramey wrote:
On 8/12/16 4:14 AM, dengke.du@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-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ cat x1
shopt -s lastpipe
exit 142 | false
echo ${PIPESTATUS[@]}
$ ./bash ./x1
142 1
$ uname -a
Linux chet-mail 2.6.32-642.1.1.el6.x86_64 #1 SMP Fri May 6 14:54:05 EDT
2016 x86_64 x86_64 x86_64 GNU/Linux