4.4 GA (general availability) release?

2016-02-23 Thread strombrg

Hi folks.

I feel a little guilty asking this, because I know Chet's pretty busy, and 
there may be plenty of good reasons to release on a regular schedule, or to 
release "when it's ready".

But it looks like there were about 3 years between bash' 4.2 GA and 4.3 GA.

Should I expect that it'll be about 3 years from 4.3 GA to 4.4 GA?  Meaning 4.4 
GA could be estimated as releasing around February of 2017?

Thanks!

PS: I've been checking for the 4.4 release pretty often.  Silly of me I suppose.


Re: Q: what is a fast way to see if an 'item' is present in an array?

2016-02-16 Thread strombrg
On Monday, February 15, 2016 at 7:59:35 PM UTC-8, Linda Walsh wrote:
> I has a little 4 line func that returns true or false
> if a string was in an array

Arrays aren't really a great datastructure for testing presence and absence in.

An associative array / dictionary / hash is better.

Consider:
http://stromberg.dnsalias.org/~strombrg/database/


Re: Add a mirror to github

2016-02-15 Thread strombrg
On Monday, February 15, 2016 at 6:19:56 AM UTC-8, Chet Ramey wrote:
> On 2/14/16 12:53 PM, strom...@gmail.com wrote:
> > On Saturday, February 13, 2016 at 10:42:37 PM UTC-8, konsolebox wrote:
> >> Hi Chet,
> >>
> >> Please consider adding a mirror of bash's git repo in github.com.  It
> >> would be easier for many people in the community to contribute code
> >> and discuss it there.
> > 
> > Chet probably has his own thoughts on this, but IMNSHO, software 
> > monoculture is bad.
> 
> How does setting up a different place for people to get the code contribute
> to a software monoculture?

github is becoming too popular for free software's own good.

It's to the point that some people feel like if it's not on github, it's not 
worth looking at.


Re: List out

2016-02-14 Thread strombrg

I'd do this like:

#!/bin/bash

python -c '
import sys
for line in sys.stdin:
fields = line.split()
count =0
for field in fields[1:]:
upper = field.upper()
print(upper)
if upper == "NA":
count += 1
print("{} {}".format(fields[0], count))
'


Re: Add a mirror to github

2016-02-14 Thread strombrg
On Saturday, February 13, 2016 at 10:42:37 PM UTC-8, konsolebox wrote:
> Hi Chet,
> 
> Please consider adding a mirror of bash's git repo in github.com.  It
> would be easier for many people in the community to contribute code
> and discuss it there.

Chet probably has his own thoughts on this, but IMNSHO, software monoculture is 
bad.