bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stderr usage instead of /dev/tty


From: Philip Lijnzaad
Subject: Re: stderr usage instead of /dev/tty
Date: 08 Aug 2001 13:50:06 +0100

> Nobody commented on my previous patch to bash
> to tell it to interact with /dev/tty instead of stderr.
> Is it complete lunacy or what? In 10 words or less
> why does bash use stderr instead of /dev/tty ?

I may have missed this, but you (I mean, programs in general) have to have
very good reasons to use /dev/tty.

This is because you might like to ignore stderr, or to pipe it to some other
process or redirect it to a particular file. All of this is not possible with
/dev/tty, which isn't even be available on non-interactive processes like a
cron job.  Or did I miss something obvious ? 

                                                                      Philip
-- 
Real programs don't eat cache (Malay)
-----------------------------------------------------------------------------
Philip Lijnzaad, lijnzaad@ebi.ac.uk \ European Bioinformatics Institute,rm A2-08
+44 (0)1223 49 4639                 / Wellcome Trust Genome Campus, Hinxton
+44 (0)1223 49 4468 (fax)           \ Cambridgeshire CB10 1SD,  GREAT BRITAIN




reply via email to

[Prev in Thread] Current Thread [Next in Thread]