Re: bash subroutine syntax question
- From: "s. keeling" <keeling@xxxxxxxxxxx>
- Date: Fri, 31 Oct 2008 03:38:39 +0100 (CET)
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.
.
- Follow-Ups:
- Re: bash subroutine syntax question
- From: ToddAndMargo
- Re: bash subroutine syntax question
- References:
- bash subroutine syntax question
- From: ToddAndMargo
- bash subroutine syntax question
- Prev by Date: Re: bash subroutine syntax question
- Next by Date: Re: bash subroutine syntax question
- Previous by thread: Re: bash subroutine syntax question
- Next by thread: Re: bash subroutine syntax question
- Index(es):
Relevant Pages
|