This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: bug in csih?
- From: Achim Gratz <Stromeko at nexgo dot de>
- To: cygwin at cygwin dot com
- Date: Mon, 23 Feb 2015 20:25:53 +0100
- Subject: Re: bug in csih?
- Authentication-results: sourceware.org; auth=none
- References: <54E7C402 dot 80306 at intersystems dot com> <20150223120522 dot GI437 at calimero dot vinschen dot de> <20150223144715 dot GS437 at calimero dot vinschen dot de> <54EB5208 dot 8050009 at intersystems dot com> <54EB59E5 dot 7050304 at intersystems dot com> <20150223173428 dot GA26549 at calimero dot vinschen dot de> <54EB698A dot 7080700 at intersystems dot com> <54EB7372 dot 1010104 at intersystems dot com> <54EB79D4 dot 3030607 at intersystems dot com>
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