home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / bsd / 8514 < prev    next >
Encoding:
Text File  |  1992-11-07  |  1.5 KB  |  41 lines

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