Re: Query regarding ${parameter:-word} usage

2009-12-23 Thread Mun
Hi Jan, On Wed, Dec 23, 2009 at 10:52 PM PST, Jan Schampera wrote: JS> JS> JS> Mun schrieb: JS> JS> > nounset on JS> JS> Something sets -u in your startup scripts (or in the script or whatever) That's it! I'm not sure why I had nounset being turned on in my .bash_profile, but there i

Re: Query regarding ${parameter:-word} usage

2009-12-23 Thread Jan Schampera
Mun schrieb: > nounset on Something sets -u in your startup scripts (or in the script or whatever)

Re: Query regarding ${parameter:-word} usage

2009-12-23 Thread Mun
Hi, Thanks for your replies. Please see my comments below. On Wed, Dec 23, 2009 at 05:30 PM PST, Matthew wrote: MW> MW> MW> Mun wrote: MW> > I am moving from ksh93 to bash and have a question regarding the usage MW> > of ${parameter:-word} parameter expansion. MW> > MW> > In ksh, I use ${*:-.}

Re: Query regarding ${parameter:-word} usage

2009-12-23 Thread DennisW
On Dec 23, 6:51 pm, Mun wrote: > Hi, > > I am moving from ksh93 to bash and have a question regarding the usage > of ${parameter:-word} parameter expansion. > > In ksh, I use ${*:-.} as an argument to commands.  For example: > >    function ll >    { >       ls --color -Flv ${*:-.} >    } > > This

Re: Query regarding ${parameter:-word} usage

2009-12-23 Thread Matthew Woehlke
Mun wrote: I am moving from ksh93 to bash and have a question regarding the usage of ${parameter:-word} parameter expansion. In ksh, I use ${*:-.} as an argument to commands. For example: function ll { ls --color -Flv ${*:-.} } This technique passes '.' as an arg to 'ls' if

Re: Query regarding ${parameter:-word} usage

2009-12-23 Thread Mike Frysinger
On Wednesday 23 December 2009 19:51:02 Mun wrote: > I am moving from ksh93 to bash and have a question regarding the usage > of ${parameter:-word} parameter expansion. > > In ksh, I use ${*:-.} as an argument to commands. For example: > >function ll >{ > ls --color -Flv ${*:-.} >