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

Cygwin Package Information
Last downloaded files to: C:\Cygwin_setup
Last downloaded files from: ftp://csociety-ftp.ecn.purdue.edu/pub/cygwin

Package             Version             
ELFIO               1.0.0-1             
WindowMaker         0.80.0-2            
XFree86-base        4.2.0-1             
XFree86-bin         4.2.0-2             
XFree86-doc         4.2.0-1             
XFree86-etc         4.2.0-1             
XFree86-fenc        4.2.0-2             
XFree86-fnts        4.2.0-2             
XFree86-lib         4.2.0-3             
XFree86-man         4.2.0-1             
XFree86-prog        4.2.0-1             
XFree86-prt         4.2.0-1             
XFree86-startup-scripts4.2.0-3             
XFree86-vfb         4.2.0-1             
XFree86-xserv       4.2.0-15            
XFree86-xwinclip    4.2.0-7             
Xaw3d               1.5-1               
_update-info-dir    00118-1             
agetty              2.1-1               
ash                 20020731-1          
astyle              1.15.3-3            
autoconf            2.54-1              
autoconf-devel      2.57-1              
autoconf-stable     2.13-4              
automake            1.7.1-1             
automake-devel      1.7.2-1             
automake-stable     1.4p5-5             
base-files          1.1-1               
base-passwd         1.0-1               
bash                2.05b-8             
bc                  1.06-1              
binutils            20021117-1          
bison               1.75-1              
byacc               1.9-1               
bzip2               1.0.2-2             
cgoban              1.9.12-1            
chkconfig           1.2.24h-1           
clear               1.0-1               
cmake               1.4.7-1             
compface            1.4-5               
cpio                2.5-1               
cron                3.0.1-7             
crypt               1.0-1               
ctags               5.2-1               
cvs                 1.11.0-1            
cygrunsrv           0.95-1              
cygutils            1.1.3-1             
cygwin              1.3.18-1            
cygwin-doc          1.2-1               
db3.1               3.1.17-2            
dejagnu             20021217-2          
diff                1.0-1               
diffutils           2.8.1-1             
doxygen             1.2.18-1            
dpkg                1.10.4-2            
emacs               21.2-11             
emacs-X11           21.2-11             
enscript            1.6.3-3             
expat               1.95.5-1            
expect              20021218-1          
file                3.37-1              
fileutils           4.1-1               
findutils           4.1.7-4             
flex                2.5.4-2             
fortune             1.8-2               
fvwm                2.4.7-2             
gawk                3.1.1-5             
gcc                 3.2-3               
gcc-mingw           20020817-4          
gcc2                2.95.3-10           
gdb                 20021218-1          
gdbm                1.8.0-4             
gettext             0.11.5-1            
ghostscript         7.05-2              
ghostscript-base    7.05-2              
ghostscript-x11     7.05-2              
gnugo               3.2-1               
gnupg               1.2.1-1             
gperf               2.7.2-1             
grep                2.5-1               
groff               1.18.1-2            
gsl                 1.3-1               
guile               1.6.0-1             
guile-devel         1.6.0-1             
guile-doc           1.6.0-1             
gzip                1.3.3-4             
indent              2.2.8-1             
inetutils           1.3.2-20            
initscripts         0.9-1               
jbigkit             1.2-6               
jpeg                6b-7                
keychain            1.9-1               
less                378-1               
lesstif             0.93.18-3           
libPropList         0.10.1-3            
libbz2_0            1.0.2-1             
libbz2_1            1.0.2-2             
libcharset1         1.8-2               
libdb3.1            3.1.17-2            
libdb3.1-devel      3.1.17-2            
libguile12          1.6.0-1             
libguile14          1.5.6-5             
libiconv            1.8-2               
libiconv2           1.8-2               
libintl             0.10.38-3           
libintl1            0.10.40-1           
libintl2            0.11.5-1            
libkpathsea3        20020911-1          
libltdl3            20030103-1          
libncurses5         5.2-1               
libncurses6         5.2-8               
libpng              1.2.4-2             
libpng10            1.0.14-2            
libpng12            1.2.4-2             
libpng12-devel      1.2.4-2             
libpopt0            1.6.4-4             
libreadline4        4.1-2               
libreadline5        4.3-2               
libtool             20020705-1          
libtool-devel       20030103-1          
libtool-stable      1.4.3-1             
login               1.7-1               
m4                  1.4-1               
make                3.79.1-7            
man                 1.5j-1              
mingw-runtime       2.3-1               
mktemp              1.4-1               
more                2.11o-1             
ncurses             5.2-8               
newlib-man          20020801            
openbox             0.99.1-3            
opengl              1.1.0-6             
openssh             3.5p1-2             
openssl             0.9.6h-1            
openssl-devel       0.9.6h-1            
pcre                3.7-1               
perl                5.6.1-2             
perl_manpages       5.8.0-1             
pkgconfig           0.14.0-1            
popt                1.6.4-4             
procps              010801-2            
rcs                 5.7-3               
readline            4.3-2               
sed                 4.0.1-1             
sh-utils            2.0.15-3            
sharutils           4.2.1-2             
swig                1.3.16-1            
sysvinit            2.84-2              
tar                 1.13.25-1           
tcltk               20021218-1          
termcap             20020930-1          
terminfo            5.2-3               
texinfo             4.2-4               
textutils           2.0.21-1            
tiff                3.5.7-1             
w32api              2.1-1               
which               1.5-1               
whois               4.6.1-1             
x2x                 1.27-2              
zlib                1.1.4-1             


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Sat Jan 18 18:18:28 2003

Windows 98 SE Ver 4.10 Build 2222 

Path:   c:\doofus\usr\local\bin
        c:\doofus\bin
        c:\doofus\bin
        =
        c:\doofus\usr\X11R6\bin

SysDir: C:\WINDOWS\SYSTEM
WinDir: C:\WINDOWS

HOME = `c:\doofus\home\user'
MAKE_MODE = `unix'
PWD = `/'
USER = `user'

BLASTER = `A220 I7 D1 H5 P330 T6'
CMDLINE = `bash --login -i'
COMSPEC = `C:\WINDOWS\COMMAND.COM'
CTSYN = `C:\WINDOWS'
HOMEDRIVE = `c:'
HOMEPATH = `\doofus\home\user'
MANPATH = `:/usr/ssl/man'
OLDPWD = `/home/user'
PROMPT = `$p$g'
PS1 = `\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
SHLVL = `1'
TEMP = `c:\WINDOWS\TEMP'
TERM = `cygwin'
TMP = `c:\WINDOWS\TEMP'
WINBOOTDIR = `C:\WINDOWS'
WINDIR = `C:\WINDOWS'
_ = `/usr/bin/cygcheck'

Use `-r' to scan registry

a:  fd           N/A    N/A                    
c:  hd  FAT32  19530Mb  30% CP    UN           
d:  cd           N/A    N/A                    

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=4.0 img=1.0 sys=4.0
                  "cyggdbm.dll" v0.0 ts=2002/2/19 22:05
  929k 2002/06/24 c:\doofus\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2002/6/24 14:24
   22k 2001/12/13 c:\doofus\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-1.dll" v0.0 ts=2001/12/13 4:28
   28k 2002/09/20 c:\doofus\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-2.dll" v0.0 ts=2002/9/19 23:13
   45k 2001/04/25 c:\doofus\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
                  "cygform5.dll" v0.0 ts=2001/4/25 1:28
   26k 2001/04/25 c:\doofus\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu5.dll" v0.0 ts=2001/4/25 1:27
  156k 2001/04/25 c:\doofus\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2001/4/25 1:29
  226k 2001/04/25 c:\doofus\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2001/4/25 1:17
   15k 2001/04/25 c:\doofus\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel5.dll" v0.0 ts=2001/4/25 1:27
   35k 2002/01/09 c:\doofus\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
                  "cygform6.dll" v0.0 ts=2002/1/9 1:03
   20k 2002/01/09 c:\doofus\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu6.dll" v0.0 ts=2002/1/9 1:03
  175k 2002/01/09 c:\doofus\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++6.dll" v0.0 ts=2002/1/9 1:03
  202k 2002/01/09 c:\doofus\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses6.dll" v0.0 ts=2002/1/9 1:03
   12k 2002/01/09 c:\doofus\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel6.dll" v0.0 ts=2002/1/9 1:03
   17k 2001/06/28 c:\doofus\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory4.dll" v0.0 ts=2001/1/6 23:34
  108k 2001/06/28 c:\doofus\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline4.dll" v0.0 ts=2001/1/6 23:34
   20k 2002/10/10 c:\doofus\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory5.dll" v0.0 ts=2002/10/10 13:28
  127k 2002/10/10 c:\doofus\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline5.dll" v0.0 ts=2002/10/10 13:28
   40k 2001/11/21 c:\doofus\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre.dll" v0.0 ts=2001/11/21 17:15
   39k 2001/11/21 c:\doofus\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix.dll" v0.0 ts=2001/11/21 17:15
   50k 2002/03/12 c:\doofus\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2002/3/11 23:38
  136k 2002/10/17 c:\doofus\bin\cygexpat-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-0.dll" v0.0 ts=2002/10/17 11:21
   45k 2002/02/08 c:\doofus\bin\cygjbig1.dll - os=4.0 img=1.0 sys=4.0
                  "cygjbig1.dll" v0.0 ts=2002/2/7 18:59
  119k 2002/02/09 c:\doofus\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0
                  "cygjpeg6b.dll" v0.0 ts=2002/2/9 0:19
   54k 2002/01/27 c:\doofus\bin\cygbz21.0.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz21.0.dll" v0.0 ts=2002/1/26 20:07
   58k 2002/05/07 c:\doofus\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2002/5/7 2:33
    6k 2002/06/24 c:\doofus\bin\cygcharset-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygcharset-1.dll" v0.0 ts=2002/6/24 14:23
  380k 2002/07/24 c:\doofus\bin\cygdb-3.1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-3.1.dll" v0.0 ts=2002/7/24 12:24
  487k 2002/07/24 c:\doofus\bin\cygdb_cxx-3.1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-3.1.dll" v0.0 ts=2002/7/24 12:25
  490k 2002/09/21 c:\doofus\bin\cygguile-12.dll - os=4.0 img=1.0 sys=4.0
                  "cygguile-12.dll" v0.0 ts=2002/9/21 6:01
   63k 2002/09/21 c:\doofus\bin\cygguile-srfi-srfi-13-14-v-1-1.dll - os=4.0 img=1.0 
sys=4.0
                  "cygguile-srfi-srfi-13-14-v-1-1.dll" v0.0 ts=2002/9/21 6:01
   24k 2002/09/21 c:\doofus\bin\cygguile-srfi-srfi-4-v-1-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygguile-srfi-srfi-4-v-1-1.dll" v0.0 ts=2002/9/21 6:01
   14k 2002/09/21 c:\doofus\bin\cygguilereadline-v-12-12.dll - os=4.0 img=1.0 sys=4.0
                  "cygguilereadline-v-12-12.dll" v0.0 ts=2002/9/21 6:01
  488k 2002/07/18 c:\doofus\bin\cygguile-14.dll - os=4.0 img=1.0 sys=4.0
                  "cygguile-14.dll" v0.0 ts=2002/7/18 6:35
   63k 2002/07/18 c:\doofus\bin\cygguile-srfi-srfi-13-14-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygguile-srfi-srfi-13-14-1.dll" v0.0 ts=2002/7/18 6:35
   24k 2002/07/18 c:\doofus\bin\cygguile-srfi-srfi-4-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygguile-srfi-srfi-4-1.dll" v0.0 ts=2002/7/18 6:35
   14k 2002/07/18 c:\doofus\bin\cygguilereadline-14.dll - os=4.0 img=1.0 sys=4.0
                  "cygguilereadline-14.dll" v0.0 ts=2002/7/18 6:35
   21k 2001/06/20 c:\doofus\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl.dll" v0.0 ts=2001/6/20 13:09
   59k 2002/09/20 c:\doofus\bin\cygkpathsea-3-3-7.dll - os=4.0 img=1.0 sys=4.0
                  "cygkpathsea-3-3-7.dll" v0.0 ts=2002/9/20 10:54
   32k 2003/01/04 c:\doofus\bin\cygltdl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygltdl-3.dll" v0.0 ts=2003/1/4 2:47
  175k 2002/07/22 c:\doofus\bin\cygpng10.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng10.dll" v0.0 ts=2002/7/22 11:51
  179k 2002/07/22 c:\doofus\bin\cygpng12.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng12.dll" v0.0 ts=2002/7/22 12:03
   22k 2002/06/09 c:\doofus\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/9 1:45
  644k 2002/12/08 c:\doofus\bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto.dll" v0.0 ts=2002/12/8 14:57
  165k 2002/12/08 c:\doofus\bin\cygssl.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl.dll" v0.0 ts=2002/12/8 14:57
  550k 2002/12/19 c:\doofus\bin\cygtcl83.dll - os=4.0 img=1.0 sys=4.0
                  "cygtcl83.dll" v0.0 ts=2002/12/18 23:58
   12k 2002/12/19 c:\doofus\bin\cygtclpip83.dll - os=4.0 img=1.0 sys=4.0
  217k 2002/12/19 c:\doofus\bin\cygtix4183.dll - os=4.0 img=1.0 sys=4.0
                  "cygtix4183.dll" v0.0 ts=2002/12/18 22:26
  830k 2002/12/19 c:\doofus\bin\cygtk83.dll - os=4.0 img=1.0 sys=4.0
                  "cygtk83.dll" v0.0 ts=2002/12/18 22:25
  253k 2002/02/10 c:\doofus\bin\cygtiff3.dll - os=4.0 img=1.0 sys=4.0
                  "cygtiff3.dll" v0.0 ts=2002/2/10 3:34
  880k 2002/12/25 c:\doofus\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2002/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: 
        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=4.0 img=1.0 sys=4.0
                  "cygPropList-0.dll" v0.0 ts=2002/5/13 23:13
Use -h to see help about each section

--
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/

Reply via email to