[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why the is output of ls direct to screen and rediect to file differe
Re: Why the is output of ls direct to screen and rediect to file different?
Sat, 07 Apr 2007 08:24:40 -0600
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:22.214.171.124) Gecko/20070221 Thunderbird/126.96.36.199 Mnenhy/0.7.5.666
-----BEGIN PGP SIGNED MESSAGE-----
According to Tomthon on 4/7/2007 4:55 AM:
> Do you mean before ls program output it's result,it would get some attributes
> from file descriptor 1 such as the screen width?
Not quite. It calls istty(), as required by POSIX, to determine whether
output is to a terminal (implies -C) or not (implies -1).
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----