bash closes fd twice.

2015-12-11 Thread Yoriyuki Yamagata
Dear list, I found that bash tries to close the same fd twice, consecutively. I’m using Mac OS X Yosemite, and bash is the newest available (bash-master from http://tiswww.case.edu/php/chet/bash/bashtop.html yesterday). To reproduce the phenomenon, just run this shell script. — begin ---

Re: bash closes fd twice.

2015-12-11 Thread Yoriyuki Yamagata
P.S. Here is the output of bash version -l GNU bash, version 4.3.42(1)-release (x86_64-apple-darwin14.5.0) — Yoriyuki Yamagata National Institute of Advanced Science and Technology (AIST), Senior Researcher http://staff.aist.go.jp/yoriyuki.yamagata/en/

Re: bash closes fd twice.

2015-12-11 Thread John McKown
On Fri, Dec 11, 2015 at 2:40 AM, Yoriyuki Yamagata < yoriyuki.yamag...@aist.go.jp> wrote: > Dear list, > > I found that bash tries to close the same fd twice, consecutively. I’m > using Mac OS X Yosemite, and bash is the newest available (bash-master from >

Re: bash closes fd twice.

2015-12-11 Thread Chet Ramey
On 12/11/15 12:40 AM, Yoriyuki Yamagata wrote: > Dear list, > > I found that bash tries to close the same fd twice, consecutively. I’m using > Mac OS X Yosemite, and bash is the newest available (bash-master from > http://tiswww.case.edu/php/chet/bash/bashtop.html yesterday). That's

Re: bash closes fd twice.

2015-12-11 Thread Eric Blake
On 12/11/2015 06:42 AM, Chet Ramey wrote: > On 12/11/15 12:40 AM, Yoriyuki Yamagata wrote: >> Dear list, >> >> I found that bash tries to close the same fd twice, consecutively. I’m >> using Mac OS X Yosemite, and bash is the newest available (bash-master from >>

Re: bash closes fd twice.

2015-12-11 Thread Mike Frysinger
On 11 Dec 2015 07:06, Eric Blake wrote: > On 12/11/2015 06:42 AM, Chet Ramey wrote: > > On 12/11/15 12:40 AM, Yoriyuki Yamagata wrote: > >> Dear list, > >> > >> I found that bash tries to close the same fd twice, consecutively. I’m > >> using Mac OS X Yosemite, and bash is the newest available