From owner-freebsd-hackers Wed Mar 22 14:01:24 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id OAA16374 for hackers-outgoing; Wed, 22 Mar 1995 14:01:24 -0800 Received: from ibp.ibp.fr (ibp.ibp.fr [132.227.60.30]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id OAA16366 for ; Wed, 22 Mar 1995 14:01:18 -0800 Received: from blaise.ibp.fr (blaise.ibp.fr [132.227.60.1]) by ibp.ibp.fr (8.6.11/jtpda-5.0) with SMTP id XAA21432 ; Wed, 22 Mar 1995 23:01:19 +0100 Received: by blaise.ibp.fr (4.1/SMI-4.1) id AA04359; Wed, 22 Mar 95 23:01:03 +0100 From: roberto@blaise.ibp.fr (Ollivier Robert) Message-Id: <9503222201.AA04359@blaise.ibp.fr> Subject: Re: Strange behaviour of sh To: wmbfmk@urc.tue.nl Date: Wed, 22 Mar 1995 23:01:02 +0100 (MET) Cc: hackers@FreeBSD.org In-Reply-To: <199503221753.SAA05048@nietzsche> from "wmbfmk@urc.tue.nl" at Mar 22, 95 06:53:01 pm X-Operating-System: FreeBSD 2.1.0-Development ctm#429 X-Mailer: ELM [version 2.4 PL23beta2] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 350 Sender: hackers-owner@FreeBSD.org Precedence: bulk > 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