Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 1995 18:53:01 +0100
From:      "wmbfmk@urc.tue.nl" <wmbfmk@urc.tue.nl>
To:        hackers@FreeBSD.org
Subject:   Strange behaviour of sh
Message-ID:  <199503221753.SAA05048@nietzsche>

next in thread | raw e-mail | index | archive | help
Hi All,

I need to call a program with the system call and have stdout and 
stderr redirected to a file, however when I issue the following 
command:

	cat foo0 >& foo1

sh responds with:

	Syntax error: bad fd number

The above line is the correct syntax to redirect stdout and stderr to 
a file or isn't it?

Any help welcome,

Marc.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503221753.SAA05048>