Re: Problem with pattern replacing when STRING is an expandable char

2007-12-13 Thread Heinz-Ado Arnolds
Paul Jarc wrote: Heinz-Ado Arnolds [EMAIL PROTECTED] wrote: a=111.1 echo ${a//[0-9]/x} correctly gives xxx.x, but echo ${a//[0-9]/*} gives a listing of files in current directory. Seems that the * is expanded before replacing the pattern. No, it's expanded

Re: Problem with pattern replacing when STRING is an expandable char

2007-12-13 Thread Heinz-Ado Arnolds
Mike Stroyan wrote: Repeat-By: a=111.1 echo ${a//[0-9]/x} correctly gives xxx.x, but echo ${a//[0-9]/*} gives a listing of files in current directory. Seems that the * is expanded before replacing the pattern. It workes the right way at least up to

Re: Please advise on bash programming tactics/strategy

2007-12-13 Thread Mike Stroyan
On Wed, Dec 12, 2007 at 06:49:25PM -0500, cga2000 wrote: On Wed, Dec 12, 2007 at 12:31:47AM EST, Bob Proulx wrote: cga2000 wrote: I was wondering if there is any way I can convince netstat to return its output to bash variables for additional processing. Do you mean like this?

status of bash_completion

2007-12-13 Thread Matthias Klose
Found http://www.caliban.org/mt/archives/2007/12/please_rescue_m.html Would anybody be interested to maintain/co-maintain bash_completion? Matthias

Re: Please advise on bash programming tactics/strategy

2007-12-13 Thread cga2000
On Thu, Dec 13, 2007 at 12:38:06PM EST, Mike Stroyan wrote: On Wed, Dec 12, 2007 at 06:49:25PM -0500, cga2000 wrote: [..] I provides exactly the output I need .. although bash must provide a more elegant (and less expensive) way to split a variable that contains two fields separated by a