www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/24/08:25:27

Date: Fri, 24 May 1996 15:21:18 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "I.G.Badcoe" <biigb AT zeus DOT bris DOT ac DOT uk>
Cc: djgpp AT delorie DOT com
Subject: Re: odd redir behaviour ?
In-Reply-To: <DruqD6.CIt@uns.bris.ac.uk>
Message-Id: <Pine.SUN.3.91.960524151727.5559B-100000@is>
Mime-Version: 1.0

On Thu, 23 May 1996, I.G.Badcoe wrote:

> 	I was messing about with redir last night and I can't make it perform
> as I expected.
>
> redir -eo -o x prog
> 
> lead to stdout being lost
> 
> and
> 
> redir -oe -e x prog had the same effect.

The docs of `redir' (in the info/utils.inf file) clearly state that 
`redir' processes the command-line arguments in the order they are 
given.  So you must *first* tell it to redirect stdout to x and *then* to 
put stderr to where stdout goes.  The docs even give an example of how it 
should be done:

	redir -o x -eo prog
or
	redir -e x -oe prog

- Raw text -


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