[xubuntu-users] Not able to execute .sh files

Michele Mor m.mor.mail at gmail.com
Sun Nov 29 22:42:59 UTC 2015


Sorry for not replying earlier but did not have time to test your
I think that I have made a mistake typical of a Window user.

If I type in terminal: spoon.sh, then I have "spoon.sh: command not found".
If I type in terminal: ./spoon.sh, then everything works OK.

My question is then: why does it work using ./ ?

Thanks for your help.

On Wed, Nov 25, 2015 at 10:10 PM, Fred Roller <fredroller66 at gmail.com>

> True, ty. Better programming practice.
> On 11/25/2015 04:49 PM, Ian wrote:
>> Try changing the first line of your script from #! bash to #! /bin/bash
> --
> xubuntu-users mailing list
> xubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/xubuntu-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/xubuntu-users/attachments/20151129/002e814d/attachment.html>

More information about the xubuntu-users mailing list