Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Apr 2013 15:50:33 GMT
From:      jilles@FreeBSD.org
To:        root@ai1.alaska.net, jilles@FreeBSD.org, freebsd-bugs@FreeBSD.org, jilles@FreeBSD.org
Subject:   Re: bin/177674: /bin/sh 'while read X' loop problem
Message-ID:  <201304071550.r37FoXiu035128@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
Synopsis: /bin/sh 'while read X' loop problem

State-Changed-From-To: open->closed
State-Changed-By: jilles
State-Changed-When: Sun Apr 7 15:48:19 UTC 2013
State-Changed-Why: 
As described by kuro, this is not a bug. The mplayer reads from stdin,
so that 'read' misses data.

Try:
  while read X <&3; do mplayer $X; done 3<FILEWITHMP3PATHNAMES


Responsible-Changed-From-To: freebsd-bugs->jilles
Responsible-Changed-By: jilles
Responsible-Changed-When: Sun Apr 7 15:48:19 UTC 2013
Responsible-Changed-Why: 
Track replies.

http://www.freebsd.org/cgi/query-pr.cgi?pr=177674



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