Re: bash subroutine syntax question
- From: Dan Espen <daneNO@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 31 Oct 2008 13:30:52 GMT
ToddAndMargo <ToddAndMargo@xxxxxxxxxxxxxxxxxx> writes:
s. keeling wrote:
ToddAndMargo <ToddAndMargo@xxxxxxxxxxxxxxxxxx>:
Just a trivia question. In bash subroutines
My Subroutine () {
...
}
Does anything go inside the "()"?
No, but that's incorrect as written.
The word "My" doesn't go there.
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.
It will save you time in the long run.
Trying to work around the shells inadequacies will take more time.
.
- Follow-Ups:
- Re: bash subroutine syntax question
- From: Grant Edwards
- Re: bash subroutine syntax question
- References:
- bash subroutine syntax question
- From: ToddAndMargo
- Re: bash subroutine syntax question
- From: s. keeling
- Re: bash subroutine syntax question
- From: ToddAndMargo
- bash subroutine syntax question
- Prev by Date: Re: transferring data between drives
- Next by Date: Re: a tool for computing time spent in front of PC?
- Previous by thread: Re: bash subroutine syntax question
- Next by thread: Re: bash subroutine syntax question
- Index(es):
Relevant Pages
|