help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Anomaly with ${*}


From: Greg Wooledge
Subject: Re: [Help-bash] Anomaly with ${*}
Date: Tue, 27 Mar 2012 08:02:44 -0400
User-agent: Mutt/1.4.2.3i

On Mon, Mar 26, 2012 at 09:50:22PM -0600, Bill Gradwohl wrote:
> Why does pattern substitution not work on * ?

Eh?  It does work on *.

imadev:~$ set -- o1ne tw2o three f4our
imadev:~$ echo "${*//[0-9]/}"
one two three four

In your example, you had a bunch of empty strings, and you asked bash
to perform a substitution on all the spaces in them, but there were
no spaces.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]