[gnu.bash.bug] function or while bug?

thewalt@RITZ.ce.cmu.edu (Chris Thewalt) (11/13/89)

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