Relative "newbie" question about a a function call
I am following along in "Learning Bash" and cannot get page 105 to work for me. (function call).
So, tried this little experiment, which leaves me stuck.
In the current directory, I have a script "myStack" as follows.
#! /bin/bash
test()
{
echo "Hello world"
}
I call it thus: (the current directory has been added to PATH)
myStack test
expecting to see "Hello World".
( Have tried myStack test(), also using a variety of quoting options)
I get no error, but get the prompt back with no text.
Anyone to the rescue?? 🙂
Thank you
Mac Pro, Mac OS X (10.6.5)