🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #700

function or while bug?

#700
From: Chris Thewalt
Date: Sun, 12 Nov 1989 16:42
17 lines
886 bytes
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
Technical Details
Message-ID: <THEWALT.89Nov12114208@RITZ.ce.cmu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!pt.cs.cmu.edu!thewalt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <THEWALT.89Nov12114208@RITZ.ce.cmu.edu>
Date: 12 Nov 89 16:42:08 GMT
Distribution: gnu
Organization: Dept. of Civil Engineering, Carnegie Mellon University,
 Pittsburgh, PA
Lines: 17