Path: utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!pt.cs.cmu.edu!thewalt From: thewalt@RITZ.ce.cmu.edu (Chris Thewalt) Newsgroups: gnu.bash.bug Subject: function or while bug? Message-ID: Date: 12 Nov 89 16:42:08 GMT Distribution: gnu Organization: Dept. of Civil Engineering, Carnegie Mellon University, Pittsburgh, PA Lines: 17 The following function gives a syntax error near done. In fact I have been unsuccessful in doing an interactive while as well (but the again, being a csh convert maybe I'm doing something wrong). function foo { while test $# != 0 do echo $1 shift done } -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Christopher Robin Thewalt These opinions are not necessarily thewalt@ce.cmu.edu shared by my employer... Carnegie Mellon University