Re: bash subroutine syntax question
- From: ToddAndMargo <ToddAndMargo@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 31 Oct 2008 02:48:36 GMT
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
.
- Follow-Ups:
- Re: bash subroutine syntax question
- From: Dan Espen
- Re: bash subroutine syntax question
- References:
- bash subroutine syntax question
- From: ToddAndMargo
- Re: bash subroutine syntax question
- From: s. keeling
- bash subroutine syntax question
- Prev by Date: Re: bash subroutine syntax question
- Next by Date: some interesting links on ubuntu
- Previous by thread: Re: bash subroutine syntax question
- Next by thread: Re: bash subroutine syntax question
- Index(es):