From owner-freebsd-hackers Sun Jul 12 15:29:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA20513 for freebsd-hackers-outgoing; Sun, 12 Jul 1998 15:29:14 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mail.camalott.com (root@mail.camalott.com [208.203.140.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA20492 for ; Sun, 12 Jul 1998 15:29:11 -0700 (PDT) (envelope-from joelh@gnu.org) Received: from detlev.UUCP (tex-71.camalott.com [208.229.74.71]) by mail.camalott.com (8.8.7/8.8.5) with ESMTP id RAA27750; Sun, 12 Jul 1998 17:29:12 -0500 Received: (from joelh@localhost) by detlev.UUCP (8.8.8/8.8.8) id RAA02805; Sun, 12 Jul 1998 17:28:22 -0500 (CDT) (envelope-from joelh) Date: Sun, 12 Jul 1998 17:28:22 -0500 (CDT) Message-Id: <199807122228.RAA02805@detlev.UUCP> To: easmith@beatrice.rutgers.edu CC: tlambert@primenet.com, bakul@torrentnet.com, dchapes@ddm.on.ca, rminnich@Sarnoff.COM, hackers@FreeBSD.ORG In-reply-to: <9807121809.ZM18864@beatrice.rutgers.edu> (easmith@beatrice.rutgers.edu) Subject: Re: Improvemnet of ln(1). From: Joel Ray Holveck Reply-to: joelh@gnu.org References: <199807120123.SAA17458@usr08.primenet.com> <199807120821.DAA01163@detlev.UUCP> <9807121809.ZM18864@beatrice.rutgers.edu> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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