Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <427227C5.70109@byu.net> Date: Fri, 29 Apr 2005 06:25:41 -0600 From: Eric Blake User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: Mark Molloy CC: cygwin AT cygwin DOT com Subject: Re: $PATHEXT not sufficient to run script from BASH without specifying extension on Windows XP? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Mark Molloy on 4/28/2005 1:42 PM: > # > # I can't seem to execute "testScript.sh" without > # specifying its extension: > # > $ testScript > bash: testScript: command not found > > # > # What am I missing to be able to run a script from bash > # without specifying the extension? > # The ONLY extension that is automatically applied by cygwin is .exe. All other extensions must be spelled out in full - see http://cygwin.com/cygwin-ug-net/using-specialnames.html. But for shell scripts, there are a couple of a simple solutions: 1) get rid of the extension altogether: $ mv testScript.sh testScript 2) allow it to be called with or without extension $ ln -s testScript.sh testScript - -- Life is short - so eat dessert first! Eric Blake ebb9 AT byu DOT net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCcifF84KuGfSFAYARAufqAJ4yKcpq1kwey/6JTqli1zdjpZbQ/wCcDuhc U1ESNq/MZLBnp3EkS/psJ30= =aa2R -----END PGP SIGNATURE----- -- 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/