Re: Can $1 be set in a script?
- From: larryalk <nobody@xxxxxxxxxxx>
- Date: Fri, 31 Mar 2006 07:17:12 GMT
On Fri, 31 Mar 2006 01:35:57 -0500, Bill Marcum <bmarcum@xxxxxxxxx>
wrote:
something=${1:-"default string"}
Bill I ran across this exact same construction before in connection
with an ~/.xinitrc script.
Would you please tell me what the syntax means of:
(1:-"default string")
I _guess_ it represents a variable.
What does the colon and minus sign signify?
Larry
--
My real sig is much better.
.
- Follow-Ups:
- Re: Can $1 be set in a script?
- From: Floyd L. Davidson
- Re: Can $1 be set in a script?
- References:
- Can $1 be set in a script?
- From: larryalk
- Re: Can $1 be set in a script?
- From: Chris F.A. Johnson
- Re: Can $1 be set in a script?
- From: larryalk
- Re: Can $1 be set in a script?
- From: Floyd L. Davidson
- Re: Can $1 be set in a script?
- From: Bill Marcum
- Can $1 be set in a script?
- Prev by Date: Re: Can $1 be set in a script?
- Next by Date: Re: Can $1 be set in a script?
- Previous by thread: Re: Can $1 be set in a script?
- Next by thread: Re: Can $1 be set in a script?
- Index(es):
Relevant Pages
|