SOLUTION: It has been kindly brought to my attention by two people that
$PATHEXT is a Windows-only phenomena, and also that cygwin's bash doesn't
support it. I was fooling myself because I used to use the MKS Toolkit
(at a previous job), and their Korn shell does support PATHEXT.
Thanks!
--
-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
> #
> # I can't seem to execute "testScript.sh" without #
> specifying its extension:
> #
> $ testScript
> bash: testScript: command not found
>
> #
> # Although the file is there and executable:
> #
> $ ls -lt testScript.*
> -rwxr-xr-x 1 Owner None 43 Apr 28 11:10 testScript.sh
>
> #
> # ...an
#
# I can't seem to execute "testScript.sh" without
# specifying its extension:
#
$ testScript
bash: testScript: command not found
#
# Although the file is there and executable:
#
$ ls -lt testScript.*
-rwxr-xr-x 1 Owner None 43 Apr 28 11:10 testScript.sh
#
# ...and it runs when the extension *
4 matches
Mail list logo