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: how to get the windows PATH env in cygwin

On 11/30/2009 08:05 PM, Dave Korn wrote:
Andrew DeFaria wrote:
Simply start the Windows command prompt and type in echo %PATH%.
You must need to re-read the subject line, since your suggested method does not actually answer the question asked.
Indeed! You're right. So then the answer is that you can use that to see what the Windows PATH is before Cygwin gets to it and you can see the resulting PATH variable after Cygwin has modified it (or you can go through steps to try to stop Cygwin from modifying it) but there is no environment variable for the Windows PATH. You could change /etc/profile(?) to export WINDOWS_PATH=$PATH before it starts changing it - or maybe you can interrogate the registry. The real question here is what does he need the Windows PATH for? If just to look at then echo %PATH% in a cmd shell or look at System: Properties: Advanced: Environment variables: PATH (Both user and system).
Andrew DeFaria <>
Is God willing to prevent evil, but not able? Then he is not omnipotent. Is he able, but not willing? then he is malevolent. Is he both able and willing? Then whence cometh evil? Is he neither able nor willing? Then why call him God?

-- Problem reports: FAQ: Documentation: Unsubscribe info:

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