Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14562

Re: 5.0alpha: tests/test1.sub is unportable

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: 5.0alpha: tests/test1.sub is unportable
Date 2018-09-08 22:54 -0400
Organization ITS, Case Western Reserve University
Message-ID <mailman.534.1536461689.1284.bug-bash@gnu.org> (permalink)
References <20180908085114.GE60818@lorvorc.mips.inka.de>

Show all headers | View raw


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/

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: 5.0alpha: tests/test1.sub is unportable Chet Ramey <chet.ramey@case.edu> - 2018-09-08 22:54 -0400

csiph-web