<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">Le 29/11/2015 23:42, Michele Mor a
écrit :<br>
</div>
<blockquote
cite="mid:CAA3b2=j-3BSArkziXPR2YQ9UOdFDmbE_9VeXz+aMr_Wu4-8DCg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>Hi.<br>
<br>
</div>
Sorry for not replying earlier but did not have time
to test your suggestion.<br>
</div>
I think that I have made a mistake typical of a Window
user.<br>
<br>
</div>
If I type in terminal: spoon.sh, then I have "spoon.sh:
command not found".<br>
</div>
If I type in terminal: ./spoon.sh, then everything works
OK.<br>
<br>
</div>
My question is then: why does it work using ./ ?<br>
</div>
</div>
</div>
</blockquote>
Because, for "security" reason, the current directory (.) is NOT by
default in the $PATH variable which sets where commands can be
found.<br>
If you type ./spoon.sh, you give a full path to the command,
bypassinbg the $PATH settings<br>
<blockquote
cite="mid:CAA3b2=j-3BSArkziXPR2YQ9UOdFDmbE_9VeXz+aMr_Wu4-8DCg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div><br>
</div>
Thanks for your help.<br>
</div>
Michele<br>
<div>
<div>
<div><br>
<div>
<div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Nov 25, 2015 at 10:10 PM, Fred
Roller <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:fredroller66@gmail.com" target="_blank">fredroller66@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">True, ty.
Better programming practice.<span class="im HOEnZb"><br>
<br>
On 11/25/2015 04:49 PM, Ian wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Try changing the first line of your script from #! bash
to #! /bin/bash<br>
</blockquote>
<br>
<br>
</span>
<div class="HOEnZb">
<div class="h5">
-- <br>
xubuntu-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:xubuntu-users@lists.ubuntu.com"
target="_blank">xubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a
moz-do-not-send="true"
href="https://lists.ubuntu.com/mailman/listinfo/xubuntu-users"
rel="noreferrer" target="_blank"><a class="moz-txt-link-freetext" href="https://lists.ubuntu.com/mailman/listinfo/xubuntu-users">https://lists.ubuntu.com/mailman/listinfo/xubuntu-users</a></a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</body>
</html>