Multiple Words on Bash Programmable Auto Completion

2008-10-01 Thread Daniel Fleischman
Description: I don't know if this is a bug or not, but it has to do with programmable auto completion. Whenever the options have multiple words I don't get what I want. Here is an example, just for show: f() { COMPREPLY="" c=0 while read line; do COM

Re: "Terminated" message from kill

2008-10-01 Thread Glenn Morris
Chet Ramey wrote: > This is a classic race condition. I see. Thanks for the explanation.

Re: Problem: extracting substring

2008-10-01 Thread maybee
Thank you, Bob. Both work great for me. Bob Proulx wrote: > > maybee wrote: >> >> I have a string mq001234ms00567_b3.45_323x7, >> and I want to subtract the numbers from it, that is, >> I will get >> mq=001234 >> ms=00567 >> b=3.45 >> >> These number may have various digits. >> Any neat w

Re: Problem: extracting substring

2008-10-01 Thread Bob Proulx
maybee wrote: > > I have a string mq001234ms00567_b3.45_323x7, > and I want to subtract the numbers from it, that is, > I will get > mq=001234 > ms=00567 > b=3.45 > > These number may have various digits. > Any neat way doing this under bash? I myself would use 'sed' (because I always have):

Problem: extracting substring

2008-10-01 Thread maybee
I have a string mq001234ms00567_b3.45_323x7, and I want to subtract the numbers from it, that is, I will get mq=001234 ms=00567 b=3.45 These number may have various digits. Any neat way doing this under bash? Thanks for looking. -- View this message in context: http://www.nabble.com/Problem%

Re: "Terminated" message from kill

2008-10-01 Thread Chet Ramey
Glenn Morris wrote: > Hi, > > This is a question similar to one from September 2006: > > http://lists.gnu.org/archive/html/bug-bash/2006-09/msg00077.html > > > Using bash 3.2.39 on x86_64 RHEL5.2, I have a script with contents: > > > function bar () > { > sleep 10 & > pid=$! > exe