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: "command not found"-For All Commands


On 30 May 2010 18:48, physicist25 wrote:
> I am initiating two ways, 1- using the desktop icon I created and 2-using the
> one at start that says mintty.
> Their startups screens are "bash-3.2#" and "-sh-3.2$". Does this answer your
> question?

The result in case 1 is to be expected unless your desktop shortcut
contains a '-' argument to tell mintty to invoke bash as a login
shell. If  bash isn't invoked as a login shell, /etc/profile isn't
sourced and the prompt and path (among other things) aren't set up.

The default mintty shortcut in the start menu does contain that '-'
argument though, which is confirmed by the '-' at the start of the
prompt you get. I can only reproduce that by removing /etc/profile
though, so it looks like something's gone quite wrong with your
install.

At this point we'll probably need the cygcheck output as described at
http://cygwin.com/problems.html, or you might just want to try
reinstalling.

Andy

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