X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Sun, 16 Sep 2007 14:39:51 -0700
From: Gary Johnson <garyjohn@spk.agilent.com>
To: cygwin@cygwin.com
Subject: Re: executing an executable
Message-ID: <20070916213951.GD11396@suncomp1.spk.agilent.com>
Mail-Followup-To: cygwin@cygwin.com
References: <a46b45460709161336r4db198afoc4ef8693766042ae@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <a46b45460709161336r4db198afoc4ef8693766042ae@mail.gmail.com>
User-Agent: Mutt/1.5.16 (2007-06-09)
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 2007-09-16, Cole Radcliffe wrote:
> "Cole Radcliffe" wrote:
> 
> > I do an ls -la and I see I have an executable called "executable.exe".
> > I chmod to 777. Then I try to type "execut" and I press tab and it
> > does not find it. When I type in the entire name and press enter, bash
> > says the command is not found! It works fine on cygwin-x.
> 
> Type ./executable or set your PATH variable to include "." (the latter
> is usually not recommended, even in cygwin, I think).
> 
> And try to read up about PATH.
> 
> Regards -- Markus
> 
> I tried "set PATH=.:$PATH" and that did not work. When I echoed the
> $PATH I realized that that command had no effect. What am I doing
> wrong?

Cygwin's default shell is bash and bash does not use 'set' to set 
environment variables.  Just execute this:

   PATH=.:$PATH

Regards,
Gary

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

