Date: Mon, 8 Mar 1999 17:49:27 -0500 (EST) From: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> To: freebsd-questions@FreeBSD.ORG (FreeBSD Questions) Subject: sh Tutorial Message-ID: <199903082249.RAA23765@cc942873-a.ewndsr1.nj.home.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903082249.RAA23765>