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.

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.

-- 
Beni Cherniavsky <[EMAIL PROTECTED]>, who can only read email on weekends.

-------------------------------------------------------------------------
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

Reply via email to