Re: bash subroutine syntax question



b.jeswine wrote:
In news:L4tOk.1499$Jv2.574@xxxxxxxxxxxxxxxxxxxx,
ToddAndMargo <ToddAndMargo@xxxxxxxxxxxxxxxxxx> typed:

Just a trivia question. In bash subroutines

My_Subroutine () {
...
}

Does anything go inside the "()"?

It depends entirely on whether the subroutine requires an argument(s).



I do not understand. When I pass arguments to the subroutine,
they come out as $1, $2, $3 ...

Can you give me an example of what you are speaking?

Many thanks,
-T
.