Stoopid script failure
Ed Greshko
Ed.Greshko at greshko.com
Sat Feb 6 15:41:23 UTC 2010
Todd Zullinger wrote:
> Patrick O'Callaghan wrote:
>
>> Can anyone explain why this doesn't work? I've been writing shell
>> scripts on and off for several decades and I can't see what's going on
>> here. Is senility setting it?
>>
>
> It may be, but it brings with it many benefits -- like being able to
> eat dessert twice because you "forgot" you'd had cake already. ;)
>
>
>> $ tst
>> bash: ./tst: Permission denied
>>
>
> '.' is not in $PATH (by default and for good reason), so you must
> specify ./tst to run the script.
>
>
I did retract what I had said earlier...and tested on my system here....
If '.' is not in my PATH I get...
[egreshko at f12 x]$ type tst
-bash: type: tst: not found
Added to the end of my PATH results in ....
[egreshko at f12 x]$ type tst
tst is ./tst
[egreshko at f12 x]$ tst
foo
--
Will the third world war keep ``Bosom Buddies'' off the air?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20100206/fb13eefb/attachment.bin
More information about the users
mailing list