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: cmd.exe from Cygwin


Larry Hall (Cygwin) wrote:
Jeenu V wrote:
On Mon, Jan 5, 2009 at 9:53 PM, Larry Hall (Cygwin)
<reply-to-list-only-lh@cygwin.com> wrote:

The Cygwin paths are added in '/etc/profile'.  Obviously, you can
remove them though that will make your configuration non-standard
and unsupported.  Essentially, this would make Cygwin tools
inaccessible when running 'bash', which doesn't sound like what
you really want.  Obviously, you could add the Cygwin paths
somewhere else to give Symbian priority but this is likely to just
cause other conflicts and, again, not be what you really want.  So
to me, the question comes down to which tools to you really want to
use, Symbian's, Cygwin's, or something else?  Once you can answer
that, you should be able to configure things so that you get the
proper set for your needs.


Thanks for the info. My intention is not to throw Cygwin and it's utilities away; but to move Cygwin path towards the end when--and only when--I run Symbian tool chain, because, AFAIK, Symbian tool chain doesn't ask for any tools from Cygwin.

But your batch file is invoking Cygwin's bash. Perhaps if you decouple things there, then they will work as you expect without changing other things in your environment. Moving Cygwin paths to the end of the path in '/etc/profile' would have the effect of making everything else in the system with a like name override the Cygwin version, even when you're using Cygwin and want the Cygwin versions. I expect this is not at all what you want.


Maybe the best thing to do would be to edit the .bat/.cmd file so that the first thing it does is redefines PATH as it is in a normal cmd window - ie w/o cygwin running.
That would result in the environment being clean for cygwin normally, and mean your symbian stuff wouldn't end up crapping itself by calling cygwin tools that work differently..


Chris

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