rusty at shell functions
- From: dthacker <dthacker@xxxxxxxxxxxxxx>
- Date: Thu, 26 Jun 2008 13:58:22 -0700 (PDT)
I'm back at the shell for scripting, without my beloved perl or even
bash. I'm having a horrible time with shell functions, so I reduced
it to this test case. What am I doing wrong? SCO 5.05
#!/bin/sh
echo "calling function foo"
foo "Dave"
foo () {
echo "$1 is not here"
return 0;
}
# ./test.sh
calling function foo
../test.sh: foo: not found
Dave
.
- Follow-Ups:
- Re: rusty at shell functions
- From: Brian K. White
- Re: rusty at shell functions
- From: Jean-Pierre Radley
- Re: rusty at shell functions
- Prev by Date: Re: Beginning to think about VMware and SCO 5.0.5
- Next by Date: Re: rusty at shell functions
- Previous by thread: Re: Beginning to think about VMware and SCO 5.0.5
- Next by thread: Re: rusty at shell functions
- Index(es):