[Top][All Lists]
[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
From: |
Eric Blake |
Subject: |
Re: Why the is output of ls direct to screen and rediect to file different? |
Date: |
Sat, 07 Apr 2007 08:24:40 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
iD8DBQFGF6mo84KuGfSFAYARAqayAJ45y209xx4pYTpCifA1/namb/FfRACfdI57
1FuKpyfFyCO/638q/qaaEBg=
=deLX
-----END PGP SIGNATURE-----