Date: Thu, 22 Mar 2001 09:21:31 +1100 From: Tony Landells <ahl@austclear.com.au> To: "Hamilton Hoover" <hamilton.hoover@onebox.com> Cc: questions@FreeBSD.ORG Subject: Re: shell question Message-ID: <200103212221.JAA07137@tungsten.austclear.com.au> In-Reply-To: Message from "Hamilton Hoover" <hamilton.hoover@onebox.com> of "Wed, 21 Mar 2001 14:51:42 MDT." <20010321205143.DGLK274.mta05.onebox.com@onebox.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <ahl@austclear.com.au> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103212221.JAA07137>