Opened 17 years ago
#199 new enhancement
Please change [ glob ] not to find hidden files or directories so that it won't fail for Emacs users
| Reported by: | Owned by: | somebody | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | component1 | Version: | 2.0 |
| Keywords: | Cc: | jasonspiro4@… |
Description
When I do [ glob *.cpp ], Boost.Build1 finds all *.cpp files. Sadly, this includes Emacs lockfiles2. Emacs stores these files in the same directory as my source files, but they are dotfiles (Unix hidden files) whose names start with dot-pound: .#main.cpp for example.
I do not want glob to find those files, and I assume that most programmers think likewise.3 Please change glob so that it does not find files or directories whose name starts with a dot.
Cheers, --Jason (jasonspiro4@gmail.com)
1 The CMake software build system has the same problem. I told CMake too: http://cmake.org/Bug/view.php?id=7487
2 http://tekman.livejournal.com/79598.html
3 I can only think of one case where programmers *do* need to think about dotfiles: C and C++ programmers who use GNU Libtool, in the cases where they need to look inside the hidden directories that Libtool creates. You can read more about these hidden directories at http://makepp.sourceforge.net/1.40.1/makepp_scanning.html#libtool. But I think it would be rare for anyone to use glob to try to find things inside Libtool hidden directories. They probably only want a few libraries from inside there, not dozens of files like I assume most glob users would want. So they are much more likely to specify the individual libraries they want by typing their full filenames.
