unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex Vong <alexvong1995@gmail.com>
To: guix-devel@gnu.org
Subject: Erroneous uses of regex in the invokation of FIND-FILES
Date: Thu, 22 Aug 2019 18:14:15 +0800	[thread overview]
Message-ID: <8636htik20.fsf@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 716 bytes --]

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

-- 
Stand with Hong Kong!
#Eye4HK
Alex

https://twitter.com/freedomhkg

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

             reply	other threads:[~2019-08-22 10:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-22 10:14 Alex Vong [this message]
2019-09-20 19:52 ` Erroneous uses of regex in the invokation of FIND-FILES Maxim Cournoyer
  -- strict thread matches above, loose matches on Subject: below --
2019-08-22 10:04 Alex Vong
2019-08-22 20:49 ` Mark H Weaver
2019-09-20 20:31 ` Maxim Cournoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8636htik20.fsf@gmail.com \
    --to=alexvong1995@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).