From owner-freebsd-questions Wed Mar 21 14:21:39 2001 Delivered-To: freebsd-questions@freebsd.org Received: from nameserver.austclear.com.au (nameserver.austclear.com.au [192.83.119.132]) by hub.freebsd.org (Postfix) with ESMTP id 242EC37B71A for ; Wed, 21 Mar 2001 14:21:34 -0800 (PST) (envelope-from ahl@austclear.com.au) Received: from tungsten.austclear.com.au (tungsten.austclear.com.au [192.168.70.1]) by nameserver.austclear.com.au (8.9.3/8.9.3) with ESMTP id JAA34310; Thu, 22 Mar 2001 09:21:31 +1100 (EST) Received: from tungsten (tungsten [192.168.70.1]) by tungsten.austclear.com.au (8.9.3/8.9.3) with ESMTP id JAA07137; Thu, 22 Mar 2001 09:21:31 +1100 (EST) Message-Id: <200103212221.JAA07137@tungsten.austclear.com.au> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Hamilton Hoover" Cc: questions@FreeBSD.ORG Subject: Re: shell question In-Reply-To: Message from "Hamilton Hoover" of "Wed, 21 Mar 2001 14:51:42 MDT." <20010321205143.DGLK274.mta05.onebox.com@onebox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 22 Mar 2001 09:21:31 +1100 From: Tony Landells Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hamilton.hoover@onebox.com said: > can sombody tell me what the tcsh equivalent to the sh 2>&1 is? I don't believe it has one. With csh-based shells you generally have the option to redirect stdout only "command > output" or stdout and stderr together "command >& output_and_errors". Anything more complex than that requires using subshells--something like this ( command > output ) >& errors will capture stdout and stderr separately, whereas something like this command > output >& errors will capture nothing more than the error message "Ambiguous output redirect". This is one reason I prefer to use something like bash... Tony -- Tony Landells Senior Network Engineer Ph: +61 3 9677 9319 Australian Clearing Services Pty Ltd Fax: +61 3 9677 9355 Level 4, Rialto North Tower 525 Collins Street Melbourne VIC 3000 Australia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message