[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: coreutils-8.31.90-cc4c.tar.xz on Solaris 11 OpenIndiana (1)
From: |
Bruno Haible |
Subject: |
Re: coreutils-8.31.90-cc4c.tar.xz on Solaris 11 OpenIndiana (1) |
Date: |
Sun, 01 Mar 2020 21:38:42 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-174-generic; KDE/5.18.0; x86_64; ; ) |
On this same platform, there is also a test failure:
FAIL: tests/misc/seq-epipe
==========================
diff: code: No such file or directory
seq emitted incorrect error on EPIPE
seq: write error: Broken pipe
FAIL tests/misc/seq-epipe.sh (exit status: 1)
Here it's the command
timeout 10 sh -c 'trap "" PIPE && { seq inf 2>err; echo $? >code; } | head
-n1' >out
which does not always behave as expected:
$ for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19; do timeout 10 sh
-c 'rm -f code; trap "" PIPE && { seq inf 2>err; echo $? >code; } | head -n1'
>out; ls -l code; done
-rw-r--r-- 1 bruno staff 2 Mar 1 21:34 code
-rw-r--r-- 1 bruno staff 2 Mar 1 21:34 code
-rw-r--r-- 1 bruno staff 2 Mar 1 21:34 code
code: No such file or directory
code: No such file or directory
code: No such file or directory
code: No such file or directory
code: No such file or directory
code: No such file or directory
code: No such file or directory
code: No such file or directory
code: No such file or directory
code: No such file or directory
-rw-r--r-- 1 bruno staff 2 Mar 1 21:34 code
-rw-r--r-- 1 bruno staff 2 Mar 1 21:34 code
-rw-r--r-- 1 bruno staff 2 Mar 1 21:34 code
code: No such file or directory
code: No such file or directory
code: No such file or directory
code: No such file or directory
Whereas, again, with 'bash' instead of 'sh', it's all right.
Bruno