Re: compgen is slow for large numbers of options

2012-03-15 Thread Richard Neill
Dear Bob, Thanks for your explanation. I do understand what is going on and why. But my point was that compgen has an implicit internal "grep" that is much less efficient than actual grep. Why is the performance of compgen's sorting/filtering algorithm so much worse than grep's ? Both of them

Re: Process group id of first command in command substitution (bash4 vs bash3)

2012-03-15 Thread Roman Rakus
On 03/10/2012 09:30 PM, Chet Ramey wrote: On 2/20/12 1:25 PM, Roman Rakus wrote: I'm not sure if it's a bug or not, but there is change between old bash 3.2 and bash 4.2. When you run a script: set -m $(sleep 1; sleep 2) in bash 4.2 the first sleep has same group id as parent shell. However in