This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygcheck -f ... misleading as to file ownership & no relative paths


--- Linda Walsh  ha scritto:
> 
> "cygcheck -f" doesn't work if you are in a directory
> and you execute it on
> files in the directory (unless you are in "/"). 
> I.e. it doesn't
> seem to recognize relative directories.

Hi Linda, 
you are right but there is a easy trick :-)
at least if a cygwin shell is working

$ cd /usr/share/doc/bash-3.2.33/

/usr/share/doc/bash-3.2.33
$ cygcheck -f README 
(No Answer)

/usr/share/doc/bash-3.2.33
$ cygcheck -f $PWD/README 
bash-3.2.33-18
(Right answer)

if cygwin is not working, cygpath and cygcheck 
should be used together
 
C:\cygwin\usr\share\doc\bash-3.2.33>cygpath -a README
/usr/share/doc/bash-3.2.33/README

C:\cygwin\usr\share\doc\bash-3.2.33>cygcheck -f
/usr/share/doc/bash-3.2.33/README
bash-3.2.33-18

Regards
Marco



      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]