[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 5.0alpha: tests/test1.sub is unportable
From: |
Chet Ramey |
Subject: |
Re: 5.0alpha: tests/test1.sub is unportable |
Date: |
Sat, 8 Sep 2018 22:54:38 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
On 9/8/18 4:51 AM, Christian Weisgerber wrote:
> I'm not sure what the new tests/test1.sub in bash 5.0alpha is
> intended to test, but it fails on OpenBSD because /dev/fd/* are
> actual character devices there, so test -p /dev/fd/6 will always
> be unsuccessful.
Interesting. OpenBSD appears to be somewhat of an outlier here. Since
file descriptor 6 is open for writing to a FIFO, one would expect that
a stat on /dev/fd/6 would return information about the open file
descriptor instead of useless information about the special device
itself. I guess we'll have to define DEV_FD_STAT_BROKEN for OpenBSD.
You can do it yourself with --enable-dev-fd-stat-broken.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/