On 06/15/2016 06:48 PM, Ken Moffat wrote:
On Wed, Jun 15, 2016 at 05:54:47PM -0500, [email protected] wrote:
#!/bin/sh on the first line of any bash script produces "No such file or
directory." /bin/sh is linked to bash. #!/bin/bash produces the same
result.
All scripts work and I've always ignored the message but I'm curious of what
I have wrong.
That sounds weird - I would expect the scripts to fail to run if you
get that error message. Certainly my own scripts do not report
that.
Does ldd /bin/bash show any missing files ? Is /tools still on your
PATH (but hopefully, deleted in a finished system - or else moved
out of the way) ?
ĸen
Yes, it's weird but has always occurred on my box so I've apparently
done something wrong. All scripts work but I receive the error with
"source SomeScript.sh" or "./SomeScript.sh." It's not a problem, just
an annoyance.
I have no /tools and it's not in my path
//bin:/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin.
ldd /bin/bash shows:
linux-vdso.so.1 (0x00007ffe871bf000)
libreadline.so.6 => /lib/libreadline.so.6 (0x00007fa9061a8000)
libhistory.so.6 => /lib/libhistory.so.6 (0x00007fa905fa0000)
libncursesw.so.6 => /lib/libncursesw.so.6 (0x00007fa905d36000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fa905b32000)
libc.so.6 => /lib/libc.so.6 (0x00007fa905791000)
/lib64/ld-linux-x86-64.so.2 (0x00007fa9063ed000)
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style