* inconsistency with handling of symlinked ttys in background @ 2010-11-09 10:18 Pádraig Brady 2011-03-15 9:53 ` Herbert Xu 0 siblings, 1 reply; 2+ messages in thread From: Pádraig Brady @ 2010-11-09 10:18 UTC (permalink / raw) To: dash I noticed a bug with dash-0.5.6-2.fc11.i586 in that it doesn't redirect from symlinked ttys correctly for background processes. $ dash -c "tty < /dev/stdin&" $ dash -c "tty < /dev/stdin" /dev/pts/3 $ bash -c "tty < /dev/stdin&" /dev/pts/3 $ dash -c "tty < $(readlink -f /dev/stdin)&" /dev/pts/3 cheers, Pádraig. ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: inconsistency with handling of symlinked ttys in background 2010-11-09 10:18 inconsistency with handling of symlinked ttys in background Pádraig Brady @ 2011-03-15 9:53 ` Herbert Xu 0 siblings, 0 replies; 2+ messages in thread From: Herbert Xu @ 2011-03-15 9:53 UTC (permalink / raw) To: Pádraig Brady; +Cc: dash On Tue, Nov 09, 2010 at 10:18:35AM +0000, Pádraig Brady wrote: > I noticed a bug with dash-0.5.6-2.fc11.i586 > in that it doesn't redirect from symlinked ttys > correctly for background processes. > > $ dash -c "tty < /dev/stdin&" > $ dash -c "tty < /dev/stdin" > /dev/pts/3 > $ bash -c "tty < /dev/stdin&" > /dev/pts/3 > $ dash -c "tty < $(readlink -f /dev/stdin)&" > /dev/pts/3 It's completely expected as we close stdin for backgrounded commands. Try: bash -c '{ :; tty < /dev/stdin; }&' Now who is inconsistent? :) Cheers, -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-15 9:53 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-11-09 10:18 inconsistency with handling of symlinked ttys in background Pádraig Brady 2011-03-15 9:53 ` Herbert Xu
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox