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: shutdown doesn't do anything, winXP


On 9/2/2011 11:26 AM, LMH wrote:

As an aside, why does which shutdown return /usr/bin/shutdown when the shutdown app is located in /bin/shutdown? What value does the /usr part of the path have in this context?

/bin and /usr/bin are the same thing by default under Cygwin. c:\cygwin is mounted as root, and then c:\cygwin\bin is mounted as /usr/bin. I imagine one could change this behavior with /etc/fstab, if one wanted.


"which" is using /usr/bin in your case simply because that was found first in your PATH environment variable.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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