Re: bash subroutine syntax question



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).


--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://blinkynet.net/comp/uip5.html Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
.



Relevant Pages