[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: Globbing broken
From: |
Paul D. Smith |
Subject: |
Re: Fwd: Globbing broken |
Date: |
Wed, 9 Feb 2005 13:52:26 -0500 |
Offhand, this does look like a bug to me, because they behave differently.
HOWEVER, the use of a trailing slash to choose only directories is not
standard or portable. The POSIX docs on glob(), or even on shell
globbing, make no mention of it and other resources on the net show that
some shells will choose only directories, while other shells strip all
trailing slashes and return all files/directories matching the pattern
with no trailing slash.
To be clear about what you want it's probably better to use "*/." and
"./*/.", where there can be absolutely no question about what you expect
and what you must receive back.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist