Re: RFE: 'list of vars' = split VAR

2010-06-29 Thread Greg Wooledge
On Tue, Jun 29, 2010 at 03:29:17AM -0700, Linda Walsh wrote: > I often have situations where I want to split an existing var into > 2 or more sub values. I usually use some combination of > ${VAR<#|%>[<#|%>]expr}, > but as soon as I don't check my break-down, I screw it up. IFS='#%' read -r -a a

Re: RFE: 'list of vars' = split VAR

2010-06-29 Thread Jan Schampera
Linda Walsh wrote: I suppose I'm presuming these features are not already implemented in some fashion -- did I overlook them, or would they be 'new'? I know it's not applicable for all cases, but I usually use read to split strings into variables/an array. J.

RFE: 'list of vars' = split VAR

2010-06-29 Thread Linda Walsh
I often have situations where I want to split an existing var into 2 or more sub values. I usually use some combination of ${VAR<#|%>[<#|%>]expr}, but as soon as I don't check my break-down, I screw it up. Which was front/back? Did I match the correct re with the correct "truncate (or match) s