From owner-freebsd-bugs@FreeBSD.ORG Sat Apr 6 21:00:02 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 67B4A12B for ; Sat, 6 Apr 2013 21:00:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 40609D7 for ; Sat, 6 Apr 2013 21:00:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r36L01mW078833 for ; Sat, 6 Apr 2013 21:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r36L01hc078832; Sat, 6 Apr 2013 21:00:01 GMT (envelope-from gnats) Date: Sat, 6 Apr 2013 21:00:01 GMT Message-Id: <201304062100.r36L01hc078832@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: poyopoyo@puripuri.plala.or.jp Subject: Re: bin/177674: /bin/sh 'while read X' loop problem X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: poyopoyo@puripuri.plala.or.jp List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Apr 2013 21:00:02 -0000 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