bugmake - Bugs: bug #26863, $(wildcard x*/) returns...

 
 

bug #26863: $(wildcard x*/) returns non-directories?

Submitted by:  Manoj Srivastava <srivasta>
Submitted on:  Sun 21 Jun 2009 04:46:39 PM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: DuplicatePrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.81Operating System: POSIX-Based
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 21 Jun 2009 05:23:59 PM UTC, comment #1:

Thanks for the report. I believe this is a duplicate of Savannah bug #18123.

If you believe this is incorrect please add a comment here.

Paul D. Smith <psmith>
Project Administrator
Sun 21 Jun 2009 04:46:39 PM UTC, original submission:

Hi,

This bug was reported by a Debian user.

In the transcript below, I test globbing in both the shell and in GNU Make's $(wildcard) function. It seems to me that while * and / behave correctly, but ?/ should NOT list the file y.

$ with-temp-dir
with-temp-dir: entering directory `/tmp/with-temp-dir.bNzKiB'
This directory will be deleted when you exit.
$ mkdir x
$ touch y
$ echo *
x y
$ echo */
x/
$ echo ?*/
x/
$ printf 'z:\n\t#$(wildcard *)' | make -f -
#x y
$ printf 'z:\n\t#$(wildcard */)' | make -f -
#x/
$ printf 'z:\n\t#$(wildcard ?*/)' | make -f -
#x/ y
$ exit
with-temp-dir: leaving directory `/tmp/with-temp-dir.bNzKiB'
$

manoj

Manoj Srivastava <srivasta>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by psmith (Posted a comment)
  • -unavailable- added by srivasta (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496615)
  • -unavailable- added by srivasta (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496615)
  • -unavailable- added by srivasta (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 21 Jun 2009 05:23:59 PM UTCpsmithStatusNone=>Duplicate
      Open/ClosedOpen=>Closed
    Sun 21 Jun 2009 04:46:40 PM UTCsrivastaCarbon-Copy-=>Added -unavailable-
      Carbon-Copy-=>Added "trent w. buck"

    Back to the top


    Powered by Savane 3.1-cleanup1