bug in csih?

Achim Gratz Stromeko@nexgo.de
Mon Feb 23 20:29:00 GMT 2015

Len Giambrone writes:
> Perhaps you want:
> grep -Eq "^{file}:" /etc/nsswitch.conf && { grep -Eq
> "^${file}:[^#]*\<db\>" /etc/nsswitch.conf || use_file=0 }

I've ised an if clause, but yes.

> Or even more simply (since the first clause is really subsumed by the
> second):
> grep -Eq "^${file}:[^#]*\<db\>" /etc/nsswitch.conf || use_file=0

No, that's what we started with.  If there is no "^${file}:" line at
all, then the default takes over and the db is implied, so that test
will have us to use files while in reality we use db.

+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Waldorf MIDI Implementation & additional documentation:

Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

More information about the Cygwin mailing list