Return to BSD News archive
Newsgroups: comp.unix.bsd Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!sol.ctr.columbia.edu!usc!elroy.jpl.nasa.gov!orchard.la.locus.com!prodnet.la.locus.com!locus.com!mjl From: mjl@bos.locus.com (Mike Leibensperger) Subject: Re: [BSD4.3reno] /bin/sh problem? In-Reply-To: rodmur@ecst.csuchico.edu's message of 4 Nov 92 23: 24:47 GMT Message-ID: <MJL.92Nov5133721@rigel.bos.locus.com> Sender: news@locus.com (Netnews) Organization: Locus Computing Corp., Boston Massachusetts USA. References: <1d9m3vINN8nh@charnel.ecst.csuchico.edu> Date: Thu, 5 Nov 1992 18:37:21 GMT Lines: 28 In article <1d9m3vINN8nh@charnel.ecst.csuchico.edu> rodmur@ecst.csuchico.edu (Dale Harris) writes: Has anyone ever tried doing a function or sub-routine in a shell script in BSD4.3 or BSD4.4, it doesn't seem to want to work, and it works on several other flavors of Unix. func() { shell script stuff here ;} func You only get shell functions with the Korn shell (/bin/ksh, linked to /bin/sh on some systems). The Korn shell requires a seperate license from AT&T or USL or whatever, so I doubt that stuff straight out of Berkeley (4.3reno, 4.4, Net2) comes with it. yr obdnt svnt, mjl -- Michael J. Leibensperger "Rats and roaches live by competition under the Locus Computing/Boston laws of supply and demand; it is the privilege 25 Mall Road; Burlington MA of human beings to live under the laws of 01803 (617)229-4980 mjl@locus.com justice and mercy." -- Wendell Berry Member of the League for Programming Freedom --- write league@prep.ai.mit.edu