From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 108995 invoked by alias); 28 Jan 2016 20:22:22 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 108977 invoked by uid 89); 28 Jan 2016 20:22:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=f, dollar X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 28 Jan 2016 20:22:20 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 7147949DB7 for ; Thu, 28 Jan 2016 20:22:19 +0000 (UTC) Received: from [10.3.113.130] (ovpn-113-130.phx2.redhat.com [10.3.113.130]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u0SKMJOE014901 for ; Thu, 28 Jan 2016 15:22:19 -0500 Subject: Re: [PATCH setup 0/3] Setup replacement for incver_ifdep To: cygwin-apps@cygwin.com References: <87lhb8htrh.fsf@Rainer.invalid> <561FA783.900@dronecode.org.uk> <87oag0qad3.fsf@Rainer.invalid> <20151019154100.GB18989@calimero.vinschen.de> <87io62hiz6.fsf@Rainer.invalid> <20151020102150.GF5319@calimero.vinschen.de> <56532D34.4090102@dronecode.org.uk> <87bnakmtqc.fsf@Rainer.invalid> <56549774.2090008@dronecode.org.uk> <87ziy3utip.fsf@Rainer.invalid> <20151126101120.GA6674@calimero.vinschen.de> <56AA50E4.2040105@dronecode.org.uk> <56AA6128.8030700@cornell.edu> <56AA74BE.4010208@redhat.com> <56AA7755.8060801@cornell.edu> From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Message-ID: <56AA787A.9080503@redhat.com> Date: Thu, 28 Jan 2016 20:22:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <56AA7755.8060801@cornell.edu> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jt3P4rfpF8XNmdQdrFhRqUnW4Che9hBvS" X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg00046.txt.bz2 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --jt3P4rfpF8XNmdQdrFhRqUnW4Che9hBvS Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 1398 On 01/28/2016 01:17 PM, Ken Brown wrote: >>> install-info $f /usr/share/info/dir || >>> install-info --entry=3D"* $$f ($f): $$f" $$f /usr/share/info/dir >>> >>> First, what do those double dollar signs mean? >> >> If this is from a Makefile snippet, it says that $f is a make variable, >> while $$ turns into a literal $f for the shell that make invokes >=20 > It's not a Makefile snippet; it's a snippet from a bash shell script. He= re's more context: >=20 > for f in /usr/share/info/*; do > case "$f" in > *\**) > ;; > */dir|*/dir.info*) > ;; > *-[0123456789]*) > ;; > *) > install-info $f /usr/share/info/dir || > install-info --entry=3D"* $$f ($f): $$f" $$f /usr/share/inf= o/dir > ;; > esac > done >=20 > It looks to me like all those double dollar signs will just get expanded = to the PID of the bash process, so that the second install-info command is = nonsense. But maybe I'm missing something. Oooh, scary. Yeah, it looks like utter nonsense, as that would indeed give the PID of bash followed by a literal f, but who wants to look up info of '1234f'? I wonder if someone writing the script copied incorrectly from a Makefile? --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --jt3P4rfpF8XNmdQdrFhRqUnW4Che9hBvS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 604 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWqnh6AAoJEKeha0olJ0NqRkIIAJaahUV7l3MxQVZdObp8yuMh f0FplmmV/XIW2eJtI3rFTUZQb7Yw1CB39/4kBBQMJ+VnSxJLjIRdHOEoazv3c2nb wSBLfrOxVBkyteAVDRDo+vLTdVQaC51NrlgsJJl22oUSbxOZqueJ/GIWZqrIBshd 2qGuLgJhk2gP4FPKMFBA3VbPQa6WUpgg4HD1YWpxFVah4YwusMXJVcNQiAz3EPBs /o4XopkAg4Kd6aHtE7mZnU7OwIgZFAJjrKCckC7+4hKJFvvRaZhiXWxF9axQKeAS 0+c/orHzkkXoq5Awx+9BoTnxsFcVmKRkwKAWfU3wvZtYfbsx3LwZkondgPatZRo= =mvkd -----END PGP SIGNATURE----- --jt3P4rfpF8XNmdQdrFhRqUnW4Che9hBvS--