On 9/15/06, Beni Cherniavsky <[EMAIL PROTECTED]> wrote: > On 05/09/06, Axel Liljencrantz <[EMAIL PROTECTED]> wrote: > > This is a shellscript implementation of isatty. It relies on the 'tty' > > command, whose exit status should depend on wether stdin is a tty. Not > > sure how portable this is, but FreeBSD has a tty implementation. Will > > look into that later. The optional argument should be the tty to test, > > so 'isatty 1' should test stdout. > >[...] > > This might go into an upcoming fish version. We'll see. > > As a user, I'd expect to find it on the ``status`` builtin, which > already reports similar things.
Sure, that makes a lot of sense. Unfortunatly, that means moving a feature from a shellscript and into the shell itself, but it is a tiny feature, and it really does make sense together with the other 'status' features. > > BTW, status -c allows Martin's wish of adding classifiers in ``ls | > less`` but not in ``rm (ls | grep foo)``. I'm not sure it's safe but > it might be a better condition for default ``ls`` behaviour than > checking if it's a tty. It does, but checking for a tty seems a better option to me, since ls already silently changes its behaviour depending on the tty. (As does many other programs, like mysql and grep) > > -- > Beni Cherniavsky <[EMAIL PROTECTED]>, who can only read email on weekends. > -- Axel ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
