www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/10/26/04:17:37

Date: Thu, 26 Oct 1995 09:12:54 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Brian P. Kasper" <kasper AT aero DOT org>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Redirecting error messages into a file

On Wed, 25 Oct 1995, Brian P. Kasper wrote:

> If I want to redirect the stderr output from 'test.exe' to the 
> file "test.txt" I type this command line:
> 
> test.exe >& test.txt
> 
> The ampersand ('&') character indicates that stderr, not stdout,
> is to be redirected.

This only works in non-standard shells, like 4DOS or NDOS.  COMMAND.COM 
doesn't know about this magic.  Not everybody have smart shells installed 
on their PCs.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019