Re: Encoding multiple filenames in a single variable

2010-08-30 Thread Jon Seymour
On Mon, Aug 30, 2010 at 11:33 PM, Greg Wooledge wrote: > On Mon, Aug 30, 2010 at 11:25:00PM +1000, Jon Seymour wrote: >> I am working on an extension to git, and need to store a list of shell >> files that can be used to extend the capabilities of the command I am >> writing. Most of the time, a v

Re: Encoding multiple filenames in a single variable

2010-08-30 Thread Greg Wooledge
On Mon, Aug 30, 2010 at 11:25:00PM +1000, Jon Seymour wrote: > I am working on an extension to git, and need to store a list of shell > files that can be used to extend the capabilities of the command I am > writing. Most of the time, a variable of the form: > > GIT_EXTRA_CONDITION_LIBS="libA.sh l

Re: Encoding multiple filenames in a single variable

2010-08-30 Thread Jon Seymour
Chris, Andrej and Greg, Thanks for your helpful replies. You are quite correct on pointing out that the solution does depend on how it is to be used To provide more context: I am working on an extension to git, and need to store a list of shell files that can be used to extend the capabilities

Re: Encoding multiple filenames in a single variable

2010-08-30 Thread Greg Wooledge
On Sun, Aug 29, 2010 at 04:07:23AM -0400, Chris F.A. Johnson wrote: > On Sun, 29 Aug 2010, Jon Seymour wrote: > > >This isn't strictly a bash question, and I'd prefer a POSIX-only > >solution if possible > >Suppose I need to encode a list of filenames in a variable POSIX shells won't have arrays

Re: Encoding multiple filenames in a single variable

2010-08-29 Thread Andre Majorel
On 2010-08-29 17:12 +1000, Jon Seymour wrote: > This isn't strictly a bash question, and I'd prefer a POSIX-only > solution if possible [ suggestions as to a good question to ask > POSIX-only questions would be appreciated ]. comp.unix.shell > Suppose I need to encode a list of filenames in a va

Re: Encoding multiple filenames in a single variable

2010-08-29 Thread Chris F.A. Johnson
On Sun, 29 Aug 2010, Jon Seymour wrote: This isn't strictly a bash question, and I'd prefer a POSIX-only solution if possible [ suggestions as to a good question to ask POSIX-only questions would be appreciated ]. The comp.unix.shell newsgroup is a good place. Suppose I need to encode a li

Re: Encoding multiple filenames in a single variable

2010-08-29 Thread Jon Seymour
| question -> _forum_ On 8/29/10, Jon Seymour wrote: > This isn't strictly a bash question, and I'd prefer a POSIX-only > solution if possible [ suggestions as to a good _forum_ to ask > POSIX-only questions would be appreciated ]. > > Suppose I need to encode a list of filenames in a variable an

Encoding multiple filenames in a single variable

2010-08-29 Thread Jon Seymour
This isn't strictly a bash question, and I'd prefer a POSIX-only solution if possible [ suggestions as to a good question to ask POSIX-only questions would be appreciated ]. Suppose I need to encode a list of filenames in a variable and each filename may contain spaces, what is good way to encode