From owner-freebsd-questions@FreeBSD.ORG Sat Nov 25 23:17:28 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8C79F16A403 for ; Sat, 25 Nov 2006 23:17:28 +0000 (UTC) (envelope-from robin@reportlab.com) Received: from pih-relay06.plus.net (pih-relay06.plus.net [212.159.14.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E34E43D70 for ; Sat, 25 Nov 2006 23:16:37 +0000 (GMT) (envelope-from robin@reportlab.com) Received: from [87.114.10.216] (helo=[192.168.0.3]) by pih-relay06.plus.net with esmtp (Exim) id 1Go6ly-0006nU-Rw for freebsd-questions@freebsd.org; Sat, 25 Nov 2006 23:17:26 +0000 Message-ID: <4568CF28.5050407@jessikat.plus.net> Date: Sat, 25 Nov 2006 23:18:00 +0000 From: Robin Becker User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: FreeBSD-Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: shell test for stdout=stderr X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Nov 2006 23:17:28 -0000 Is there a way for a shell script to test if 2> is the same as 1>? I want to put messages in both when they are connected to different files, but would like to avoid duplicating the message when they are the same. -- Robin Becker