[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #26863] $(wildcard x*/) returns non-directories?
From: |
Manoj Srivastava |
Subject: |
[bug #26863] $(wildcard x*/) returns non-directories? |
Date: |
Sun, 21 Jun 2009 16:46:42 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.11) Gecko/2009061317 Iceweasel/3.0.11 (Debian-3.0.11-1) |
URL:
<http://savannah.gnu.org/bugs/?26863>
Summary: $(wildcard x*/) returns non-directories?
Project: make
Submitted by: srivasta
Submitted on: Sun 21 Jun 2009 11:46:39 AM CDT
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: 3.81
Operating System: POSIX-Based
Fixed Release: None
_______________________________________________________
Details:
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
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?26863>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #26863] $(wildcard x*/) returns non-directories?,
Manoj Srivastava <=