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 <herb...@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to