Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 1995 23:01:02 +0100 (MET)
From:      roberto@blaise.ibp.fr (Ollivier Robert)
To:        wmbfmk@urc.tue.nl
Cc:        hackers@FreeBSD.org
Subject:   Re: Strange behaviour of sh
Message-ID:  <9503222201.AA04359@blaise.ibp.fr>
In-Reply-To: <199503221753.SAA05048@nietzsche> from "wmbfmk@urc.tue.nl" at Mar 22, 95 06:53:01 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 	cat foo0 >& foo1
> 
> sh responds with:
> 
> 	Syntax error: bad fd number

For sh type shells (sh, ash, bash) you'll need to use that form :

foo >foo1 2>&1

The syntax you used is for csh-type shells.
-- 
Ollivier ROBERT     -=- The daemon is FREE! -=-     roberto@FreeBSD.ORG
   FreeBSD keltia 2.1.0-Development #1: Mon Mar  6 23:55:18 MET 1995



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