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: $PATHEXT not sufficient to run script from BASH without specifying extension on Windows XP?


-----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@byu.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]