bug-bash
[Top][All Lists]
Advanced

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

Re: Syntax Question...


From: Greg Wooledge
Subject: Re: Syntax Question...
Date: Wed, 17 Aug 2011 08:24:41 -0400
User-agent: Mutt/1.4.2.3i

On Tue, Aug 16, 2011 at 03:41:19PM -0700, Linda Walsh wrote:
> Ken Irving wrote:
> >Maybe this?
> >    today_snaps=( ${snap_prefix} )

>   but as you mention, that will put them into an array....sorry "imprecise
> terminology".... list for me is some number of objects in a string 
> separated by some
> separator.

This is an extremely bad idea.  Legacy Bourne shell code from the
1980s kind of bad -- from the horrible days before we *had* arrays
in shells.  How are you going to handle filenames with spaces in them?
With newlines in them?  With commas in them?  With colons in them?  Tabs?
DEL characters?  Those are all valid in filenames.  Any delimiter you
can *put* in a shell string is also a valid character in a filename (or
at least in a pathname, which eliminates the possibility of using slash).



reply via email to

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