1.5.24 unable to access files via root / (forward slash)
Hi, I'm trying to access files for reading via the / directive, i.e. vi /usr/foo.txt However, this will not open foo.txt, vi creates a new file in the current directory instead. I can cd to the /usr directory and open the file with vi usr.txt. I'm using vi as an example, I'm actually trying to compile files with a gcc variant, and it can't access files the the / path either. I've checked with the mount command that / is mounted, and it reports: D:\cygwin_root on / type system (binmode) Output from ls -lg /usr shows -rwxrwxrwx 1 mkgroup-l-d 13 Feb 20 13:33 foo.txt Which seems ok from what I've read? I've attached the output from cygcheck using cygcheck -srvv. Apologies if I'm missing something really simple here. http://www.nabble.com/file/6655/cygcheck.out cygcheck.out Thanks in advance, Jeff. -- View this message in context: http://www.nabble.com/1.5.24-unable-to-access-files-via-root---%28forward-slash%29-tf3260586.html#a9061924 Sent from the Cygwin Users mailing list archive at Nabble.com. -- 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: [ANNOUNCEMENT] 1.5.24 unable to access files via root / (forward slash)
You have a whole mess of non-Cygwin programs in your path. Ah... it looks like I have a lot of housekeeping to take care of that I didn't know about. I need to do some reading up on the PATH variable, I thought it was only the stuff in /usr/etc/profile that set the PATH. Thanks! Jeff. -- View this message in context: http://www.nabble.com/1.5.24-unable-to-access-files-via-root---%28forward-slash%29-tf3260586.html#a9062765 Sent from the Cygwin Users mailing list archive at Nabble.com. -- 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: [ANNOUNCEMENT] 1.5.24 unable to access files via root / (forward slash)
Just to conclude my query, in the file usr/etc/profile I've added the line: PATH= Above my other PATH variables. When I run cygcheck again, all of the pre-existing Windows Path environment variables have gone, which seems to be what I needed to happen. Thanks to all, Jeff. -- View this message in context: http://www.nabble.com/1.5.24-unable-to-access-files-via-root---%28forward-slash%29-tf3260586.html#a9063791 Sent from the Cygwin Users mailing list archive at Nabble.com. -- 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/