<div dir="ltr"><div><div><div>The shell file IS marked executable.<br><br></div>I do not have a ~/.bash_profile, ~/.bash_login<br></div><br>I DO have a ~/.profile but it appears not to have run at login because if I do run it manually in a command shell, suddenly the path to my ~/bin does work and the foo.sh works properly. <br>
<br></div>Still puzzled.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 26, 2014 at 10:34 PM, Nathan England <span dir="ltr"><<a href="mailto:plug-discuss@nmecs.com" target="_blank">plug-discuss@nmecs.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I would guess the file is not executable.<br>
<br>
chmod +x ~/bin/foo.sh<br>
<br>
<br>
<br>
On Wednesday, February 26, 2014 09:18:31 PM Dazed_75<br>
wrote:<br>
<div class="im HOEnZb">> I thought $PATH contained the series of paths searched<br>
to find an<br>
> executable file by the name specified on the command<br>
line. Specifically if<br>
> my $ENV contains a $PATH which reads:<br>
><br>
> /home/larry/bin:<more paths><br>
><br>
> that an executable file like foo.sh found in<br>
/home/larry/bin/ could be run<br>
> by simply typing foo.sh on the command line. What am<br>
I doing wrong as it<br>
> does not work though it does if I type ./bin/foo.sh<br>
while in /home/larry/?<br>
</div><div class="HOEnZb"><div class="h5">---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Dazed_75 a.k.a. Larry<br><br>Please protect my address like I protect yours. When sending messages to multiple recipients, use the BCC:
(Blind carbon copy). Remove addresses from a forwarded message body before clicking Send. <br>
</div>