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

Re: bash features (Re: Question about "Depends: bash")



On Wed, Nov 22, 2006 at 10:12:14AM +0000, Oleg Verych wrote:
> On 2006-11-21, Ian Jackson wrote:
> > Oleg Verych writes ("Re: Question about "Depends: bash""):
> >> o `arrays'  bashizm -> tmp=$@ ; set -- $ARRAY ; use_array $@ ; set -- $tmp
> >
> > This is another piece of bad advice: this approach is buggy if the
> > arguments might contain whitespace, which is often the case (eg if
> > they're filename arguments).
> 
> Who said, that it's without bugs, bugs of my usage or bugs in BaSH, dash?
> "NO WARRANTY" message on every login (:?
> 
> (BTW, spaces in filenames are problem of those dual-boots, who have non
> UTC BIOS time and such.)

No. I use spaces in my filenames, and protect them accordingly in
scripts. For example, I remember a configuration file of KDE that used
to have a space in its names (something with color in it; it escapes my
mind right now).



Reply to: