Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jul 1998 17:28:22 -0500 (CDT)
From:      Joel Ray Holveck <joelh@gnu.org>
To:        easmith@beatrice.rutgers.edu
Cc:        tlambert@primenet.com, bakul@torrentnet.com, dchapes@ddm.on.ca, rminnich@Sarnoff.COM, hackers@FreeBSD.ORG
Subject:   Re: Improvemnet of ln(1).
Message-ID:  <199807122228.RAA02805@detlev.UUCP>
In-Reply-To: <9807121809.ZM18864@beatrice.rutgers.edu> (easmith@beatrice.rutgers.edu)
References:  <199807120123.SAA17458@usr08.primenet.com>  <199807120821.DAA01163@detlev.UUCP> <9807121809.ZM18864@beatrice.rutgers.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
> I am somewhat reluctant to suggest this... but why not:
> 	A. use isatty on the stderr file descriptor to decide the
> 	   default behavior
> 	B. use -w to activate warnings for a non-tty
> and	C. use -q to deactivate warnings for a tty
> The reason I'm somewhat reluctant to suggest this is that I generally
> dislike things that change based upon isatty... but this appears to be
> an exception, just as is color ls' --color=tty option.

I considered this, but I am fairly opposed to basing the behavior of
non-interactive programs on isatty, probably for the same reasons as
you.

I've made my case, quite clearly, and seem to be in the minority.
However, there doesn't seem to be anyone who objects to adding -w.
(Even Terry stated that he may consider objecting, but doesn't
actually object at this time.)  So, I'll write the patch to add a -w
switch.

Thanks for everyone's input!

Happy hacking,
joelh

-- 
Joel Ray Holveck - joelh@gnu.org - http://www.wp.com/piquan
   Fourth law of programming:
   Anything that can go wrong wi
sendmail: segmentation violation - core dumped

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807122228.RAA02805>