Re: nullglob option breaks complex parameter expansion/deletion

2005-07-05 Thread Michael Wardle
I've come to a better understanding of how expansion occurs and now realize that this is not a bug. Thanks to Chet for his time in responding to my messages. ___ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash

Re: nullglob option breaks complex parameter expansion/deletion

2005-07-05 Thread Paul Jarc
[EMAIL PROTECTED] wrote: > I had been using ${HOSTNAME%%.*} in my prompt to show the local > host name portion of my full host name (e.g. localhost instead > of localhost.localdomain). After enabling the nullglob shell > option, this pattern is being replaced by a n

Re: nullglob option breaks complex parameter expansion/deletion

2005-07-02 Thread Michael Wardle
On Sat, 2005-07-02 at 12:24 -0400, Chet Ramey wrote: > Michael Wardle wrote: > > Hi Chet > > > > Thanks for your very prompt reply. > > > > I understand that globbing is happening, but I don't understand why > > deleting a parameter should occur with nullglob set if the parameter > > matches but

Re: nullglob option breaks complex parameter expansion/deletion

2005-07-02 Thread Chet Ramey
Michael Wardle wrote: > Hi Chet > > Thanks for your very prompt reply. > > I understand that globbing is happening, but I don't understand why > deleting a parameter should occur with nullglob set if the parameter > matches but the word to delete doesn't. The bash behavior seems to make > this c

Re: nullglob option breaks complex parameter expansion/deletion

2005-07-02 Thread Michael Wardle
> I also noticed in the POSIX standard that quoting the word part should > cause it to be literal and prevent globbing. If I try this in bash, I > get the same result as in my original message, that is: > > $ shopt -s nullglob > $ connectioninfo='${HOST%%".*"} ${USER}' > $ echo $connectioninfo >

Re: nullglob option breaks complex parameter expansion/deletion

2005-07-02 Thread Michael Wardle
Hi Chet Thanks for your very prompt reply. I understand that globbing is happening, but I don't understand why deleting a parameter should occur with nullglob set if the parameter matches but the word to delete doesn't. The bash behavior seems to make this construct useful only for file name del

Re: nullglob option breaks complex parameter expansion/deletion

2005-07-01 Thread Chet Ramey
[EMAIL PROTECTED] wrote: > Bash Version: 3.0 > Patch Level: 16 > Release Status: release > > Description: > I had been using ${HOSTNAME%%.*} in my prompt to show the local > host name portion of my full host name (e.g. localhost instead > of localhost.localdomain). After