Reference to absolute path seems broken.
I have a very strange issue in Cygwin, it seems that referring to an absolute path is sometimes broken. These examples will probably illustrate the problem: (from root directory) (OK) [EMAIL PROTECTED] / $ diff Cygwin.bat Thumbs.db Binary files Cygwin.bat and Thumbs.db differ (ERROR) [EMAIL PROTECTED] / $ diff /Cygwin.bat Thumbs.db /usr/bin/diff: /Cygwin.bat: No such file or directory Notice the slash before Cygwin.bat. Is this normal?? Other commands such as 'ls' work fine. (OK) [EMAIL PROTECTED] / $ diff /Cygwin.bat Thumbs.db /usr/bin/diff: /Cygwin.bat: No such file or directory I think this gives me problems when installing other software (caml). Can somebody help me? Thanks, Mathijs -- 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/
Re: Reference to absolute path seems broken.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Mathijs Romans on 2/29/2008 6:42 AM: | (ERROR) | [EMAIL PROTECTED] / | $ diff /Cygwin.bat Thumbs.db | /usr/bin/diff: /Cygwin.bat: No such file or directory | | Notice the slash before Cygwin.bat. Is this normal?? Other commands | such as 'ls' work fine. The slash before the file name in the error message is normal - diff uses the file name you typed in generating its message. However, why the diff was unable to find the file by its absolute name is not normal - I couldn't reproduce it, so there is something different about your / than there is for mine. Running strace may shed some light on this, as well. | Can somebody help me? | We need 'cygcheck -svr' output, as a text attachment, to learn more about your /. | Problem reports: http://cygwin.com/problems.html - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHyA0284KuGfSFAYARArs/AKClMPXrjzU/3+25Fd9xsCVKyUpswgCfXHFy RXnJUpVyAPfaFKTv7AP3MjQ= =5dS4 -END PGP SIGNATURE- -- 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/
Re: Reference to absolute path seems broken.
On Fri, Feb 29, 2008 at 2:48 PM, Eric Blake [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Mathijs Romans on 2/29/2008 6:42 AM: | (ERROR) | [EMAIL PROTECTED] / | $ diff /Cygwin.bat Thumbs.db | /usr/bin/diff: /Cygwin.bat: No such file or directory | | Notice the slash before Cygwin.bat. Is this normal?? Other commands | such as 'ls' work fine. The slash before the file name in the error message is normal - diff uses the file name you typed in generating its message. However, why the diff was unable to find the file by its absolute name is not normal - I couldn't reproduce it, so there is something different about your / than there is for mine. Running strace may shed some light on this, as well. Thanks for your quick answer. I first tried to run strace which gave no output at all. Only then I realised there might be a windows command 'diff' and I was running that one. So I installed diffutils with the great Cygwin packagemanager. Then I got the strace output and the same error. Then I restarted Cygwin, and now the error is gone! (OK) [EMAIL PROTECTED] / $ diff /Cygwin.bat Cygwin.ico Files /Cygwin.bat and Cygwin.ico differ The combination of posix/windows is terribly confusing for me sometimes. Thanks again for your help! Mathijs | Can somebody help me? | We need 'cygcheck -svr' output, as a text attachment, to learn more about your /. | Problem reports: http://cygwin.com/problems.html - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHyA0284KuGfSFAYARArs/AKClMPXrjzU/3+25Fd9xsCVKyUpswgCfXHFy RXnJUpVyAPfaFKTv7AP3MjQ= =5dS4 -END PGP SIGNATURE- -- 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/
Re: Reference to absolute path seems broken.
On Fri, 29 Feb 2008, Mathijs Romans wrote: On Fri, Feb 29, 2008 at 2:48 PM, Eric Blake [EMAIL PROTECTED] wrote: http://cygwin.com/acronyms/#PCYMTNQREAIYR. Thanks. According to Mathijs Romans on 2/29/2008 6:42 AM: | (ERROR) | [EMAIL PROTECTED] / | $ diff /Cygwin.bat Thumbs.db | /usr/bin/diff: /Cygwin.bat: No such file or directory | | Notice the slash before Cygwin.bat. Is this normal?? Other commands | such as 'ls' work fine. The slash before the file name in the error message is normal - diff uses the file name you typed in generating its message. However, why the diff was unable to find the file by its absolute name is not normal - I couldn't reproduce it, so there is something different about your / than there is for mine. Running strace may shed some light on this, as well. Thanks for your quick answer. I first tried to run strace which gave no output at all. Only then I realised there might be a windows command 'diff' and I was running that one. So I installed diffutils with the great Cygwin packagemanager. Then I got the strace output and the same error. Then I restarted Cygwin, and now the error is gone! (OK) [EMAIL PROTECTED] / $ diff /Cygwin.bat Cygwin.ico Files /Cygwin.bat and Cygwin.ico differ The combination of posix/windows is terribly confusing for me sometimes. Thanks again for your help! Mathijs | Can somebody help me? | We need 'cygcheck -svr' output, as a text attachment, to learn more about your /. Note that the above would have probably shown a different diff in your PATH. In general, if a command behaves in an unexpected way, check that you're using the Cygwin version of that command (by using which diff or, better yet, type diff in bash). Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! That which is hateful to you, do not do to your neighbor. That is the whole Torah; the rest is commentary. Go and study it. -- Rabbi Hillel -- 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/