X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_YG,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <28723613.post@talk.nabble.com>
References: <28722920.post@talk.nabble.com>	<AANLkTinwKtF7dY0AqKGTYSWLVuL-D3XcDsn89fZr5irE@mail.gmail.com>	<28723613.post@talk.nabble.com>
Date: Sun, 30 May 2010 20:26:38 +0100
Message-ID: <AANLkTikwpuY9sKCaQx8Hj94dZw4mfqJtz-MiFx2pnCoP@mail.gmail.com>
Subject: Re: "command not found"-For All Commands
From: Andy Koppe <andy.koppe@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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

