Re: bash subroutine syntax question
- From: ToddAndMargo <ToddAndMargo@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 31 Oct 2008 02:23:02 GMT
b.jeswine wrote:
In news:L4tOk.1499$Jv2.574@xxxxxxxxxxxxxxxxxxxx,
ToddAndMargo <ToddAndMargo@xxxxxxxxxxxxxxxxxx> typed:
Just a trivia question. In bash subroutines
My_Subroutine () {
...
}
Does anything go inside the "()"?
It depends entirely on whether the subroutine requires an argument(s).
I do not understand. When I pass arguments to the subroutine,
they come out as $1, $2, $3 ...
Can you give me an example of what you are speaking?
Many thanks,
-T
.
- Follow-Ups:
- Re: bash subroutine syntax question
- From: Bit Twister
- Re: bash subroutine syntax question
- References:
- bash subroutine syntax question
- From: ToddAndMargo
- Re: bash subroutine syntax question
- From: b.jeswine
- bash subroutine syntax question
- Prev by Date: Re: a tool for computing time spent in front of PC?
- 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):