Re: Puzzling discrepancy in bash variables

2008-10-16 Thread Larry Clapp
On Wed, Oct 15, 2008 at 03:11:15PM -0700, RMMM wrote: > I'm trying to create a bash function for use in auto completion, but > I've run into bash behavior I don't understand. All I want to do is > generate a list of the file names from a certain directory. I have a > line > > filenames=$(for file

Re: Puzzling discrepancy in bash variables

2008-10-15 Thread Matthew Woehlke
RMMM wrote: RMMM wrote: As far as I can tell, the variables $filenames and $filenames1 have the same values. Yet, they behave differently when used in an argument. Is there some hidden aspect to a bash variable that I'm not seeing? I just figured out the problem. I was running this in a shel

Re: Puzzling discrepancy in bash variables

2008-10-15 Thread RMMM
RMMM wrote: > > As far as I can tell, the variables $filenames and $filenames1 have the > same values. Yet, they > behave differently when used in an argument. Is there some hidden aspect > to a bash variable > that I'm not seeing? > I just figured out the problem. I was running this in a sh