Hi, The find command seems to be behaving differently depending on the content of the current directory.
drwxr-xr-x+ 4 Administ ???????? 4096 May 12 08:41 ./ drwxr-xr-x+ 12 Administ ???????? 8192 May 6 17:02 ../ drwxr-xr-x+ 2 Administ ???????? 8192 May 11 14:06 Code/ drwxr-xr-x+ 4 Administ ???????? 0 Mar 24 10:22 XML/ -rwxr-xr-x+ 1 Administ ???????? 55022 Apr 20 11:00 XMLParser-rik.java* -rw------- 1 E11804 mkgroup- 28367 May 12 08:41 cygcheck.out When I issue a : - 08:43$ find ./ -name *.java ./XMLParser-rik.java It does not seem to go into the subdirectories. But when I issue a :- 08:43$ find ./ -name \*.java ./Code/ReadFile.java ./Code/XMLParser-a.java ./Code/XMLParser-bak.java ./Code/XMLParser.java ./XMLParser-rik.java It seems like the the shell is substituting '*' with the filename in the current directory. However, when the current directory does not have a file that matches the pattern, then find seem to recursively search the subdirectory. 08:43$ find ./ -name *.txt ./Code/config.txt ./Code/English_Std.txt ./Code/issues.txt ./Code/log-MainMenu.txt ./Code/log-Test.txt ./Code/Readme.txt ./Code/Readme1.txt Is this supposed to be the correct behaviour? Because I have another cygwin installation in WinXP which shows a different behaviour. The shell does not substitute the filename when using 'find ./ -name *.txt' The version used is 08:46$ bash --version GNU bash, version 2.05b.0(1)-release (i686-pc-cygwin) Copyright (C) 2002 Free Software Foundation, Inc. 08:49$ find --version GNU find version 4.1.7 the listing of the directory is as below
cygcheck.out
Description: Binary data
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/