delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/29/08:31:23

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <ebb9 AT byu DOT net>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: Mark Molloy <MarkMolloy AT DirecWay DOT COM>
CC: cygwin AT cygwin DOT com
Subject: Re: $PATHEXT not sufficient to run script from BASH without specifying extension on Windows XP?
References: <loom DOT 20050428T213602-892 AT post DOT gmane DOT org>
In-Reply-To: <loom.20050428T213602-892@post.gmane.org>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019