Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Apr 2013 21:00:01 GMT
From:      poyopoyo@puripuri.plala.or.jp
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/177674: /bin/sh 'while read X' loop problem
Message-ID:  <201304062100.r36L01hc078832@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/177674; it has been noted by GNATS.

From: poyopoyo@puripuri.plala.or.jp
To: FreeBSD-gnats-submit@freebsd.org
Cc:  
Subject: Re: bin/177674: /bin/sh 'while read X' loop problem
Date: Sun, 07 Apr 2013 05:53:49 +0900

 At Sat, 6 Apr 2013 11:32:24 -0900 (AKST),
 Joe Public wrote:
 > OK:   while read X; do echo    $X; done < FILEWITHMP3PATHNAMES
 > OK:   while read X; do ls -l   $X; done < FILEWITHMP3PATHNAMES
 > FAIL: while read X; do mplayer $X; done < FILEWITHMP3PATHNAMES
 
 The first iteration of mplayer eats up all stdin.
 You can
 
 while read X; do mplayer $X < /dev/tty; done
 
 This is not a bug at all.
 
 -- 
 kuro



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304062100.r36L01hc078832>