About Ozmake, Tk, getS and Qtk

Joachim Durchholz joachim at hact.de
Wed Jan 16 11:46:06 CET 2002


Jussi Salmela wrote:

>    copy NonExistent NewOne >Rotten 2>&1
> I get the message
>    Too many parameters
> with the text
>            0 file(s) copied
> in file Rotten. So the system command COPY does not even

 > allow my redirection attempt!

Ah. This sounds as if the 2>&1 stuff is simply passed through to the 
called program, with no redirection attempt on the side of the shell.
Which is curious, since DOS had redirection facilities working since DOS 
3.0 (if not even earlier). The shell just doesn't understand the syntax, 
that's all :(

The best thing that you can do is to write a small wrapper program that 
does the redirection, then executes whatever was passed to it as 
parameter string. (You'd have to use "COMMAND /C ..." to execute builtin 
commands this way though.)

Regards,
Joachim
--
This is not an official statement from my employer.

-
Please send submissions to users at mozart-oz.org
and administriva mail to users-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.





More information about the mozart-users mailing list