Re: bash subroutine syntax question



s. keeling wrote:
ToddAndMargo <ToddAndMargo@xxxxxxxxxxxxxxxxxx>:
Just a trivia question. In bash subroutines

My Subroutine () {
...
}

Does anything go inside the "()"?

Not to my knowledge, but my "Learning the bash shell" is pretty old
and it may have changed.

Interpreted shell languages (sh, bash, ksh, zsh, ...) generally don't
pass values or pointers like C/C++, and they're limited to affecting
the environment and returning integer exit values (or they've since
evolved beyond what I've known of them).

I just go to perl when shell isn't up to it (and I'd like to learn
python one of these days).

Thank you for the reply. Seems to me it is just
window dressing.

I would love to learn Perl, but have never had the time.

-T
.