delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:from:to:subject:references:date:in-reply-to | |
:message-id:mime-version:content-type; q=dns; s=default; b=ijEp4 | |
0FzvMlxDiteCpoij1P26DS9TccmQuSb7QW9ZhsEOoQ8hzBDRwB2JVuZxmKv5zbpW | |
TxX+urSUA6P+G2Ge8vu80yfMR2mrb1hUFltCSisxHQrRTEbtifWe1uWEcqRO7+Aw | |
oP5XclQlugmSOPjg2kQa9D0L+SV6fzwvVKGTOE= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:from:to:subject:references:date:in-reply-to | |
:message-id:mime-version:content-type; s=default; bh=D+3kGqWsYrL | |
sd59jOIqkXtOKChE=; b=Q5h6CJoS0RkIF9Jw7C7U4GPsIVFeR2eGsWT9noGmvXU | |
pAqJZDdvokAbetqbRYw3bFI2Y727XPb4wnbfnF071JJ77wsSDYvFiH5x5SLU1Cni | |
K7ys59/aUXUk/VtSclddrM/B4slhid4L88p4lshtCdnhI9fwOddtMCjtlmuEx4QA | |
= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 |
X-HELO: | mail-in-01.arcor-online.net |
X-DKIM: | Sendmail DKIM Filter v2.8.2 mail-in-02.arcor-online.net 3krYJy1xNCz1Sj0 |
From: | Achim Gratz <Stromeko AT nexgo DOT de> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: bug in csih? |
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> |
Date: | Mon, 23 Feb 2015 20:25:53 +0100 |
In-Reply-To: | <54EB79D4.3030607@intersystems.com> (Len Giambrone's message of "Mon, 23 Feb 2015 14:04:52 -0500") |
Message-ID: | <87ioeswhtq.fsf@Rainer.invalid> |
User-Agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
MIME-Version: | 1.0 |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |