[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Puzzling discrepancy in bash variables
From: |
RMMM |
Subject: |
Re: Puzzling discrepancy in bash variables |
Date: |
Wed, 15 Oct 2008 15:21:39 -0700 (PDT) |
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 shell with
dircolors. Arggg!
doing
filenames=`ls --color=no mydir`
is all I needed to do. Well ... maybe there's some better way of getting the
filenames
that's immune to any invisible codes.
--
View this message in context:
http://www.nabble.com/Puzzling-discrepancy-in-bash-variables-tp20003296p20003300.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.