From owner-freebsd-questions Mon Mar 8 14:40:27 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 57AEF150EC for ; Mon, 8 Mar 1999 14:40:24 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.8.8) id RAA23765 for freebsd-questions@FreeBSD.ORG; Mon, 8 Mar 1999 17:49:27 -0500 (EST) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199903082249.RAA23765@cc942873-a.ewndsr1.nj.home.com> Subject: sh Tutorial To: freebsd-questions@FreeBSD.ORG (FreeBSD Questions) Date: Mon, 8 Mar 1999 17:49:27 -0500 (EST) Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Anyone out there know of a good tutorial for the Bourne shell (sh)? In particular, one with a focus on file descriptors. The few I find and the manpage say that the following line opens 'temp' for reading and writing and associates fd 3 with it, exec 3<> temp However, I get, ./fdtest: 3: Syntax error: redirection unexpected Whenever I use a '<>' redirect. What am I doing wrong? If I do either a '>' or '<' it works. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message