Re: Stoopid script failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@f12 x]$ type tst
-bash: type: tst: not found

Added to the end of my PATH results in ....

[egreshko@f12 x]$ type tst
tst is ./tst

[egreshko@f12 x]$ tst
foo





-- 
Will the third world war keep ``Bosom Buddies'' off the air?

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux