This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bug in csih?


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.


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

Waldorf MIDI Implementation & additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs

--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]