Activity log for bug #6087

Date Who What changed Old value New value Message
2005-12-24 02:42:31 Zooko Wilcox-O'Hearn bug added bug
2008-02-20 02:49:59 Martin Pool bug assigned to findutils (Ubuntu)
2008-07-26 16:45:42 nine description The man page says: -wholename pattern File name matches shell pattern pattern. The metacharacters do not treat `/' or `.' specially; so, for example, find . -wholename './sr*sc' will print an entry for a directory called './src/misc' (if one exists). To ignore a whole directory tree, use -prune rather than checking every file in the tree. For example, to skip the directory `src/emacs' and all files and directories under it, and print the names of the other files found, do something like this: find . -wholename './src/emacs' -prune -o -print Okay, so let's try it: zooko@yumyum:~/foo$ mkdir splat zooko@yumyum:~/foo$ mkdir gronk zooko@yumyum:~/foo$ mkdir gronk/fluff zooko@yumyum:~/foo$ find . -wholename './gronk/' -prune -o -print ./gronk ./gronk/fluff ./splat ... ! I just figured out that the problem is the trailing "/" in my pattern. Hm. I'm used to writing a trailing "/" whenever I write a directory name. I wonder if it is possible for the man page to disabuse the casual reader of this assumption... The find(1) man page says: - wholename pattern File name matches shell pattern pattern. The metacharacters do not treat `/' or `.' specially; so, for example, find . -wholename './sr*sc' will print an entry for a directory called './src/misc' (if one exists). To ignore a whole directory tree, use -prune rather than checking every file in the tree. For example, to skip the directory `src/emacs' and all files and directories under it, and print the names of the other files found, do something like this: find . -wholename './src/emacs' -prune -o -print Okay, so let's try it: zooko@yumyum:~/foo$ mkdir splat zooko@yumyum:~/foo$ mkdir gronk zooko@yumyum:~/foo$ mkdir gronk/fluff zooko@yumyum:~/foo$ find . -wholename './gronk/' -prune -o -print ./gronk ./gronk/fluff ./splat ... ! I just figured out that the problem is the trailing "/" in my pattern. Hm. I'm used to writing a trailing "/" whenever I write a directory name. I wonder if it is possible for the man page to disabuse the casual reader of this assumption...
2008-07-26 16:48:30 nine description The find(1) man page says: - wholename pattern File name matches shell pattern pattern. The metacharacters do not treat `/' or `.' specially; so, for example, find . -wholename './sr*sc' will print an entry for a directory called './src/misc' (if one exists). To ignore a whole directory tree, use -prune rather than checking every file in the tree. For example, to skip the directory `src/emacs' and all files and directories under it, and print the names of the other files found, do something like this: find . -wholename './src/emacs' -prune -o -print Okay, so let's try it: zooko@yumyum:~/foo$ mkdir splat zooko@yumyum:~/foo$ mkdir gronk zooko@yumyum:~/foo$ mkdir gronk/fluff zooko@yumyum:~/foo$ find . -wholename './gronk/' -prune -o -print ./gronk ./gronk/fluff ./splat ... ! I just figured out that the problem is the trailing "/" in my pattern. Hm. I'm used to writing a trailing "/" whenever I write a directory name. I wonder if it is possible for the man page to disabuse the casual reader of this assumption... The find(1) man page says: - wholename pattern File name matches shell pattern pattern. The metacharacters do not treat `/' or `.' specially; so, for example, find . -wholename './sr*sc' will print an entry for a directory called './src/misc' (if one exists). To ignore a whole directory tree, use -prune rather than checking every file in the tree. For example, to skip the directory `src/emacs' and all files and directories under it, and print the names of the other files found, do something like this: find . -wholename './src/emacs' -prune -o -print Okay, so let's try it: zooko@yumyum:~/foo$ mkdir splat zooko@yumyum:~/foo$ mkdir gronk zooko@yumyum:~/foo$ mkdir gronk/fluff zooko@yumyum:~/foo$ find . -wholename './gronk/' -prune -o -print ./gronk ./gronk/fluff ./splat Directory gronk and its subtree is not skipped, while I was expecting that to happen. The problem is the trailing "/" in my pattern. I'm used to writing a trailing "/" whenever I write a directory name. I wonder if it is possible for the man page to disabuse the casual reader of this assumption.
2008-07-26 17:14:25 nine findutils: status New Unknown
2010-06-03 19:03:22 nine removed subscriber mouz
2011-03-02 12:28:38 IKT findutils (Ubuntu): status New Fix Released