Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <003501c2bf48$31197e20$a48b28d0@military> From: "Paul T. Karch" To: "Cygwin General Mail List" Subject: find Exhibits Strange Behavior ? Date: Sat, 18 Jan 2003 18:20:28 -0500 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0032_01C2BF1E.4716DD00" X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 ------=_NextPart_000_0032_01C2BF1E.4716DD00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit After I startup with cygwin.bat I am put into the /home/user directory. If I try to do any of the commands: find . -iname *.c find -iname *.c find / -iname *.c I get the following: find: paths must precede expression Usage: find [path...] [expression] If I enter: find *.c it works OK, but not recursively (as I found out in a 2nd pass on the test). I made a subdirectory of "user"; copied some files; and cd'ed to it and entered: find . -iname *.c it works fine. If I cd to / and enter find . -iname *.c it displays some results, but if I cd to usr and issue the same command I get more results than I got in the "higher" / directory. But doesn't this mean that find is not working recursively as it should ? However under "/" I changed the command to find / -iname '*.c' and it worked as I expected. Thus emboldened, I cd'ed to ~ and tried find . -iname '*.c' and it worked fine. This is not really a problem, I guess, but it is curious. Also I may not be interpreting the meaning of the find command properly. Any comments ? Paul T. Karch ------=_NextPart_000_0032_01C2BF1E.4716DD00 Content-Type: text/plain; name="goof.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="goof.txt" Cygwin Package Information Last downloaded files to: C:\Cygwin_setup Last downloaded files from: ftp://csociety-ftp.ecn.purdue.edu/pub/cygwin Package Version =20 ELFIO 1.0.0-1 =20 WindowMaker 0.80.0-2 =20 XFree86-base 4.2.0-1 =20 XFree86-bin 4.2.0-2 =20 XFree86-doc 4.2.0-1 =20 XFree86-etc 4.2.0-1 =20 XFree86-fenc 4.2.0-2 =20 XFree86-fnts 4.2.0-2 =20 XFree86-lib 4.2.0-3 =20 XFree86-man 4.2.0-1 =20 XFree86-prog 4.2.0-1 =20 XFree86-prt 4.2.0-1 =20 XFree86-startup-scripts4.2.0-3 =20 XFree86-vfb 4.2.0-1 =20 XFree86-xserv 4.2.0-15 =20 XFree86-xwinclip 4.2.0-7 =20 Xaw3d 1.5-1 =20 _update-info-dir 00118-1 =20 agetty 2.1-1 =20 ash 20020731-1 =20 astyle 1.15.3-3 =20 autoconf 2.54-1 =20 autoconf-devel 2.57-1 =20 autoconf-stable 2.13-4 =20 automake 1.7.1-1 =20 automake-devel 1.7.2-1 =20 automake-stable 1.4p5-5 =20 base-files 1.1-1 =20 base-passwd 1.0-1 =20 bash 2.05b-8 =20 bc 1.06-1 =20 binutils 20021117-1 =20 bison 1.75-1 =20 byacc 1.9-1 =20 bzip2 1.0.2-2 =20 cgoban 1.9.12-1 =20 chkconfig 1.2.24h-1 =20 clear 1.0-1 =20 cmake 1.4.7-1 =20 compface 1.4-5 =20 cpio 2.5-1 =20 cron 3.0.1-7 =20 crypt 1.0-1 =20 ctags 5.2-1 =20 cvs 1.11.0-1 =20 cygrunsrv 0.95-1 =20 cygutils 1.1.3-1 =20 cygwin 1.3.18-1 =20 cygwin-doc 1.2-1 =20 db3.1 3.1.17-2 =20 dejagnu 20021217-2 =20 diff 1.0-1 =20 diffutils 2.8.1-1 =20 doxygen 1.2.18-1 =20 dpkg 1.10.4-2 =20 emacs 21.2-11 =20 emacs-X11 21.2-11 =20 enscript 1.6.3-3 =20 expat 1.95.5-1 =20 expect 20021218-1 =20 file 3.37-1 =20 fileutils 4.1-1 =20 findutils 4.1.7-4 =20 flex 2.5.4-2 =20 fortune 1.8-2 =20 fvwm 2.4.7-2 =20 gawk 3.1.1-5 =20 gcc 3.2-3 =20 gcc-mingw 20020817-4 =20 gcc2 2.95.3-10 =20 gdb 20021218-1 =20 gdbm 1.8.0-4 =20 gettext 0.11.5-1 =20 ghostscript 7.05-2 =20 ghostscript-base 7.05-2 =20 ghostscript-x11 7.05-2 =20 gnugo 3.2-1 =20 gnupg 1.2.1-1 =20 gperf 2.7.2-1 =20 grep 2.5-1 =20 groff 1.18.1-2 =20 gsl 1.3-1 =20 guile 1.6.0-1 =20 guile-devel 1.6.0-1 =20 guile-doc 1.6.0-1 =20 gzip 1.3.3-4 =20 indent 2.2.8-1 =20 inetutils 1.3.2-20 =20 initscripts 0.9-1 =20 jbigkit 1.2-6 =20 jpeg 6b-7 =20 keychain 1.9-1 =20 less 378-1 =20 lesstif 0.93.18-3 =20 libPropList 0.10.1-3 =20 libbz2_0 1.0.2-1 =20 libbz2_1 1.0.2-2 =20 libcharset1 1.8-2 =20 libdb3.1 3.1.17-2 =20 libdb3.1-devel 3.1.17-2 =20 libguile12 1.6.0-1 =20 libguile14 1.5.6-5 =20 libiconv 1.8-2 =20 libiconv2 1.8-2 =20 libintl 0.10.38-3 =20 libintl1 0.10.40-1 =20 libintl2 0.11.5-1 =20 libkpathsea3 20020911-1 =20 libltdl3 20030103-1 =20 libncurses5 5.2-1 =20 libncurses6 5.2-8 =20 libpng 1.2.4-2 =20 libpng10 1.0.14-2 =20 libpng12 1.2.4-2 =20 libpng12-devel 1.2.4-2 =20 libpopt0 1.6.4-4 =20 libreadline4 4.1-2 =20 libreadline5 4.3-2 =20 libtool 20020705-1 =20 libtool-devel 20030103-1 =20 libtool-stable 1.4.3-1 =20 login 1.7-1 =20 m4 1.4-1 =20 make 3.79.1-7 =20 man 1.5j-1 =20 mingw-runtime 2.3-1 =20 mktemp 1.4-1 =20 more 2.11o-1 =20 ncurses 5.2-8 =20 newlib-man 20020801 =20 openbox 0.99.1-3 =20 opengl 1.1.0-6 =20 openssh 3.5p1-2 =20 openssl 0.9.6h-1 =20 openssl-devel 0.9.6h-1 =20 pcre 3.7-1 =20 perl 5.6.1-2 =20 perl_manpages 5.8.0-1 =20 pkgconfig 0.14.0-1 =20 popt 1.6.4-4 =20 procps 010801-2 =20 rcs 5.7-3 =20 readline 4.3-2 =20 sed 4.0.1-1 =20 sh-utils 2.0.15-3 =20 sharutils 4.2.1-2 =20 swig 1.3.16-1 =20 sysvinit 2.84-2 =20 tar 1.13.25-1 =20 tcltk 20021218-1 =20 termcap 20020930-1 =20 terminfo 5.2-3 =20 texinfo 4.2-4 =20 textutils 2.0.21-1 =20 tiff 3.5.7-1 =20 w32api 2.1-1 =20 which 1.5-1 =20 whois 4.6.1-1 =20 x2x 1.27-2 =20 zlib 1.1.4-1 =20 Cygwin Win95/NT Configuration Diagnostics Current System Time: Sat Jan 18 18:18:28 2003 Windows 98 SE Ver 4.10 Build 2222=20 Path: c:\doofus\usr\local\bin c:\doofus\bin c:\doofus\bin =3D c:\doofus\usr\X11R6\bin SysDir: C:\WINDOWS\SYSTEM WinDir: C:\WINDOWS HOME =3D `c:\doofus\home\user' MAKE_MODE =3D `unix' PWD =3D `/' USER =3D `user' BLASTER =3D `A220 I7 D1 H5 P330 T6' CMDLINE =3D `bash --login -i' COMSPEC =3D `C:\WINDOWS\COMMAND.COM' CTSYN =3D `C:\WINDOWS' HOMEDRIVE =3D `c:' HOMEPATH =3D `\doofus\home\user' MANPATH =3D `:/usr/ssl/man' OLDPWD =3D `/home/user' PROMPT =3D `$p$g' PS1 =3D `\[\033]0;\w\007 \033[32m\]\u@\h \[\033[33m\w\033[0m\] $ ' SHLVL =3D `1' TEMP =3D `c:\WINDOWS\TEMP' TERM =3D `cygwin' TMP =3D `c:\WINDOWS\TEMP' WINBOOTDIR =3D `C:\WINDOWS' WINDIR =3D `C:\WINDOWS' _ =3D `/usr/bin/cygcheck' Use `-r' to scan registry a: fd N/A N/A =20 c: hd FAT32 19530Mb 30% CP UN =20 d: cd N/A N/A =20 c:\doofus / user = binmode c:\doofus/bin /usr/bin user = binmode c:\doofus/lib /usr/lib user = binmode . /cygdrive user = binmode,cygdrive c:\doofus\usr\X11R6\lib\X11\fonts /usr/X11R6/lib/X11/fonts system = binmode Found: c:\doofus\bin\bash.exe Found: c:\doofus\bin\cat.exe Found: c:\doofus\bin\cpp.exe Found: c:\doofus\bin\find.exe Found: c:\doofus\bin\gcc.exe Found: c:\doofus\bin\gdb.exe Found: c:\doofus\bin\ld.exe Found: c:\doofus\bin\ls.exe Found: c:\doofus\bin\make.exe Found: c:\doofus\bin\sh.exe 19k 2002/02/20 c:\doofus\bin\cyggdbm.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cyggdbm.dll" v0.0 ts=3D2002/2/19 22:05 929k 2002/06/24 c:\doofus\bin\cygiconv-2.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygiconv-2.dll" v0.0 ts=3D2002/6/24 14:24 22k 2001/12/13 c:\doofus\bin\cygintl-1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygintl-1.dll" v0.0 ts=3D2001/12/13 4:28 28k 2002/09/20 c:\doofus\bin\cygintl-2.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygintl-2.dll" v0.0 ts=3D2002/9/19 23:13 45k 2001/04/25 c:\doofus\bin\cygform5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygform5.dll" v0.0 ts=3D2001/4/25 1:28 26k 2001/04/25 c:\doofus\bin\cygmenu5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygmenu5.dll" v0.0 ts=3D2001/4/25 1:27 156k 2001/04/25 c:\doofus\bin\cygncurses++5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygncurses++5.dll" v0.0 ts=3D2001/4/25 1:29 226k 2001/04/25 c:\doofus\bin\cygncurses5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygncurses5.dll" v0.0 ts=3D2001/4/25 1:17 15k 2001/04/25 c:\doofus\bin\cygpanel5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygpanel5.dll" v0.0 ts=3D2001/4/25 1:27 35k 2002/01/09 c:\doofus\bin\cygform6.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygform6.dll" v0.0 ts=3D2002/1/9 1:03 20k 2002/01/09 c:\doofus\bin\cygmenu6.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygmenu6.dll" v0.0 ts=3D2002/1/9 1:03 175k 2002/01/09 c:\doofus\bin\cygncurses++6.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygncurses++6.dll" v0.0 ts=3D2002/1/9 1:03 202k 2002/01/09 c:\doofus\bin\cygncurses6.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygncurses6.dll" v0.0 ts=3D2002/1/9 1:03 12k 2002/01/09 c:\doofus\bin\cygpanel6.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygpanel6.dll" v0.0 ts=3D2002/1/9 1:03 17k 2001/06/28 c:\doofus\bin\cyghistory4.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cyghistory4.dll" v0.0 ts=3D2001/1/6 23:34 108k 2001/06/28 c:\doofus\bin\cygreadline4.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygreadline4.dll" v0.0 ts=3D2001/1/6 23:34 20k 2002/10/10 c:\doofus\bin\cyghistory5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cyghistory5.dll" v0.0 ts=3D2002/10/10 13:28 127k 2002/10/10 c:\doofus\bin\cygreadline5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygreadline5.dll" v0.0 ts=3D2002/10/10 13:28 40k 2001/11/21 c:\doofus\bin\cygpcre.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygpcre.dll" v0.0 ts=3D2001/11/21 17:15 39k 2001/11/21 c:\doofus\bin\cygpcreposix.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygpcreposix.dll" v0.0 ts=3D2001/11/21 17:15 50k 2002/03/12 c:\doofus\bin\cygz.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygz.dll" v0.0 ts=3D2002/3/11 23:38 136k 2002/10/17 c:\doofus\bin\cygexpat-0.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygexpat-0.dll" v0.0 ts=3D2002/10/17 11:21 45k 2002/02/08 c:\doofus\bin\cygjbig1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygjbig1.dll" v0.0 ts=3D2002/2/7 18:59 119k 2002/02/09 c:\doofus\bin\cygjpeg6b.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygjpeg6b.dll" v0.0 ts=3D2002/2/9 0:19 54k 2002/01/27 c:\doofus\bin\cygbz21.0.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygbz21.0.dll" v0.0 ts=3D2002/1/26 20:07 58k 2002/05/07 c:\doofus\bin\cygbz2-1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygbz2-1.dll" v0.0 ts=3D2002/5/7 2:33 6k 2002/06/24 c:\doofus\bin\cygcharset-1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygcharset-1.dll" v0.0 ts=3D2002/6/24 14:23 380k 2002/07/24 c:\doofus\bin\cygdb-3.1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygdb-3.1.dll" v0.0 ts=3D2002/7/24 12:24 487k 2002/07/24 c:\doofus\bin\cygdb_cxx-3.1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygdb_cxx-3.1.dll" v0.0 ts=3D2002/7/24 12:25 490k 2002/09/21 c:\doofus\bin\cygguile-12.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygguile-12.dll" v0.0 ts=3D2002/9/21 6:01 63k 2002/09/21 c:\doofus\bin\cygguile-srfi-srfi-13-14-v-1-1.dll - = os=3D4.0 img=3D1.0 sys=3D4.0 "cygguile-srfi-srfi-13-14-v-1-1.dll" v0.0 = ts=3D2002/9/21 6:01 24k 2002/09/21 c:\doofus\bin\cygguile-srfi-srfi-4-v-1-1.dll - = os=3D4.0 img=3D1.0 sys=3D4.0 "cygguile-srfi-srfi-4-v-1-1.dll" v0.0 ts=3D2002/9/21 = 6:01 14k 2002/09/21 c:\doofus\bin\cygguilereadline-v-12-12.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygguilereadline-v-12-12.dll" v0.0 ts=3D2002/9/21 = 6:01 488k 2002/07/18 c:\doofus\bin\cygguile-14.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygguile-14.dll" v0.0 ts=3D2002/7/18 6:35 63k 2002/07/18 c:\doofus\bin\cygguile-srfi-srfi-13-14-1.dll - = os=3D4.0 img=3D1.0 sys=3D4.0 "cygguile-srfi-srfi-13-14-1.dll" v0.0 ts=3D2002/7/18 = 6:35 24k 2002/07/18 c:\doofus\bin\cygguile-srfi-srfi-4-1.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygguile-srfi-srfi-4-1.dll" v0.0 ts=3D2002/7/18 6:35 14k 2002/07/18 c:\doofus\bin\cygguilereadline-14.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygguilereadline-14.dll" v0.0 ts=3D2002/7/18 6:35 21k 2001/06/20 c:\doofus\bin\cygintl.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygintl.dll" v0.0 ts=3D2001/6/20 13:09 59k 2002/09/20 c:\doofus\bin\cygkpathsea-3-3-7.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygkpathsea-3-3-7.dll" v0.0 ts=3D2002/9/20 10:54 32k 2003/01/04 c:\doofus\bin\cygltdl-3.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygltdl-3.dll" v0.0 ts=3D2003/1/4 2:47 175k 2002/07/22 c:\doofus\bin\cygpng10.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygpng10.dll" v0.0 ts=3D2002/7/22 11:51 179k 2002/07/22 c:\doofus\bin\cygpng12.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygpng12.dll" v0.0 ts=3D2002/7/22 12:03 22k 2002/06/09 c:\doofus\bin\cygpopt-0.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygpopt-0.dll" v0.0 ts=3D2002/6/9 1:45 644k 2002/12/08 c:\doofus\bin\cygcrypto.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygcrypto.dll" v0.0 ts=3D2002/12/8 14:57 165k 2002/12/08 c:\doofus\bin\cygssl.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygssl.dll" v0.0 ts=3D2002/12/8 14:57 550k 2002/12/19 c:\doofus\bin\cygtcl83.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygtcl83.dll" v0.0 ts=3D2002/12/18 23:58 12k 2002/12/19 c:\doofus\bin\cygtclpip83.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 217k 2002/12/19 c:\doofus\bin\cygtix4183.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygtix4183.dll" v0.0 ts=3D2002/12/18 22:26 830k 2002/12/19 c:\doofus\bin\cygtk83.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygtk83.dll" v0.0 ts=3D2002/12/18 22:25 253k 2002/02/10 c:\doofus\bin\cygtiff3.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygtiff3.dll" v0.0 ts=3D2002/2/10 3:34 880k 2002/12/25 c:\doofus\bin\cygwin1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygwin1.dll" v0.0 ts=3D2002/12/25 15:37 Cygwin DLL version info: DLL version: 1.3.18 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 69 Shared data: 3 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix:=20 Build date: Wed Dec 25 15:37:50 EST 2002 Shared id: cygwin1S3 41k 2002/05/14 c:\doofus\usr\X11R6\bin\cygPropList-0.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygPropList-0.dll" v0.0 ts=3D2002/5/13 23:13 Use -h to see help about each section ------=_NextPart_000_0032_01C2BF1E.4716DD00 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ------=_NextPart_000_0032_01C2BF1E.4716DD00--