On 12/22/09 5:18 PM, Jonathan Claggett wrote:
Hi all,
I'm not sure if this is a bug or not but it certainly caught me by surprise.
I accidentally created an alias ending with a backslash and a newline today
and the resulting alias proceeded to grab the text on the line _after_ I ran
it. For
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 technique passes '.' as an arg to 'ls' if I didn't
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 ${*:-.}
}
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'
On Dec 23, 6:51 pm, Mun mjeli...@gmail.com 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 ${*:-.}
}
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 ${*:-.} as an
On Dec 23, 7:34 am, Chet Ramey chet.ra...@case.edu wrote:
I would think so, since you've inserted a command continuation (the escaped
newline) into the command via the alias. It's the same as if you had typed
*$* echo \
** Hello, World!
The only unexpected part is the re-issuing of $PS1 as
Mun schrieb:
nounset on
Something sets -u in your startup scripts (or in the script or whatever)
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 it was.