bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #56875] subst failure for "$" character


From: anonymous
Subject: [bug #56875] subst failure for "$" character
Date: Mon, 9 Sep 2019 10:13:19 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

URL:
  <https://savannah.gnu.org/bugs/?56875>

                 Summary: subst failure for "$" character
                 Project: make
            Submitted by: None
            Submitted on: Mon 09 Sep 2019 02:13:17 PM UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: None
        Operating System: Any
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

The attached Makefile demonstrates a failure to filter the "$" character from
a string using subst function. The attached Makefile.patch includes a
workaround to this problem withthe insertion of a single space in the string
to be filtered. This Makefile logic works as expected for GNU Make version 4.0
and older on various OSes and machine architectures (RHEL7, MacOSX, TOSS,
x86_64, powerpc etc.):

--- BEGIN correct output ---
Makefile:2: CVS_BASE_TAG_NAME = v1.1.1beta.1
CVS_BASE_TAG_NAME = v1.1.1beta.1
----
make --version
GNU Make 4.0
Built for x86_64-unknown-linux-gnu
Copyright (C) 1988-2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
--- END correct output ---


Unfortunately, GNU Make version 4.2.1 fails to remove the trailing "$"
character as follows. I cannot attest to version 4.1 or 4.2 of Make, since I
don't have either of those versions installed.

--- BEGIN incorrect output ---
Makefile:2: CVS_BASE_TAG_NAME = v1.1.1beta.1 $
CVS_BASE_TAG_NAME = v1.1.1beta.1 $
----
make --version
GNU Make 4.2.1
Built for powerpc64le-unknown-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
--- END incorrect output ---





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 09 Sep 2019 02:13:17 PM UTC  Name: Makefile  Size: 231B   By: None

<http://savannah.gnu.org/bugs/download.php?file_id=47470>
-------------------------------------------------------
Date: Mon 09 Sep 2019 02:13:17 PM UTC  Name: Makefile.patch  Size: 232B   By:
None

<http://savannah.gnu.org/bugs/download.php?file_id=47471>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56875>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]