Date: Tue, 9 Mar 1999 10:40:35 -0500 (EST) From: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> To: gjb@comkey.com.au (Greg Black) Cc: cjclark@home.com, freebsd-questions@FreeBSD.ORG Subject: Re: sh Tutorial Message-ID: <199903091540.KAA00613@cc942873-a.ewndsr1.nj.home.com> In-Reply-To: <19990309120219.10367.qmail@alpha.comkey.com.au> from Greg Black at "Mar 9, 99 10:02:19 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Greg Black wrote, > > 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. > > Seems like /bin/sh has a bug. It works fine with bash -- and > bash comes with a decent man page and substantial additional > documentation which is worth reading. Found the PR for it, bin/7325. It was reported for 2.2.6 in July of last year. For some reason, the PR-sender listed is as 'non-critical' and of 'low' priority. IMHO, the potential to break a sh-script that should work according to the docs is a bit more severe than that. -- 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?199903091540.KAA00613>