From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Vong Subject: Erroneous uses of regex in the invokation of FIND-FILES Date: Thu, 22 Aug 2019 18:14:15 +0800 Message-ID: <8636htik20.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:59096) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0k6q-0003DR-27 for guix-devel@gnu.org; Thu, 22 Aug 2019 06:14:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i0k6o-0007A7-0h for guix-devel@gnu.org; Thu, 22 Aug 2019 06:14:22 -0400 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:42763) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i0k6n-000793-QH for guix-devel@gnu.org; Thu, 22 Aug 2019 06:14:21 -0400 Received: by mail-pg1-x532.google.com with SMTP id p3so3339633pgb.9 for ; Thu, 22 Aug 2019 03:14:21 -0700 (PDT) Received: from debian (42-98-181-003.static.netvigator.com. [42.98.181.3]) by smtp.gmail.com with ESMTPSA id j5sm22019906pgp.59.2019.08.22.03.14.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2019 03:14:19 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable [Resending...] Hello guix, I find out that there are a lof of erroneous uses of regex in the invokation of FIND-FILES. The correct usage should be: (find-files "." "\\.c$") Instead people write: (find-files "." ".*\\.c") which match unwanted files. For examples, in the procedure CUSTOM-GCC, the correct regex should be: "(c\\+\\+|cpp|g\\+\\+|gcov|gcc|gcc-.*)$" instead of: ".*(c\\+\\+|cpp|g\\+\\+|gcov|gcc|gcc-.*)" Please correct me if I am wrong. Right now, the erroneous use of regex in CUSTOM-GCC casues the 'bin/' directory of the output of gccgo, gcc-objc and gcc-objc++ to be empty. =2D-=20 Stand with Hong Kong! #Eye4HK Alex https://twitter.com/freedomhkg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQQwb8uPLAHCXSnTBVZh71Au9gJS8gUCXV5q9wAKCRBh71Au9gJS 8uyIAQCy23ps41025oPcKjE9T2IhV+MW+oLnGo+Z6CRTpMGGWQEAzI+iT49PZFfF ilG7BSVOhPGqj8mhH935gjJBHhiGAwk= =Bce2 -----END PGP SIGNATURE----- --=-=-=--