Return to BSD News archive
Path: sserve!manuel.anu.edu.au!munnari.oz.au!sgiblab!swrinde!elroy.jpl.nasa.gov!ames!olivea!charnel!rodmur
From: rodmur@ecst.csuchico.edu (Dale Harris)
Newsgroups: comp.unix.bsd
Subject: [BSD4.3reno] /bin/sh problem?
Message-ID: <1d9m3vINN8nh@charnel.ecst.csuchico.edu>
Date: 4 Nov 92 23:24:47 GMT
Organization: California State University, Chico
Lines: 24
NNTP-Posting-Host: periprism.ecst.csuchico.edu
I don't know if anyone has asked this before or not, but...
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
/bin/sh complains about an unexpected '('
--
__ _ Dale A. Harris {rodmur@ecst.csuchico.edu}
/ ) // / "There is only one Race, the
/ / __. // _ , , , __. _ /_ _ __ _ Human Race", If I
/__/_(_/|_</_</_ (_(_/_(_/|_/_)_ / /_</_/ (_</_ quoted someone...good.