> From: rhubarbpie...@gmail.com
> Date: Sat, 18 Jun 2016 10:48:54 -0500
> Subject: Re: [lfs-support] #!/bin/sh: No such file or directory
>
> On 06/18/2016 07:20 AM, Simon Geard wrote:
> > On Fri, 2016-06-17 at 17:25 -0500, rhubarbpie...@gmail.com wrote:
> >> All exist but for linux-vdso.so.1.  However, I responded to the
> >> /bin/bash question wrong.  I do NOT receive the error with
> >> "/bin/bash."
> >> My mistake.
> > So, the shell itself is fine, but scripts that run it aren't?
> >
> > Which scripts? Ones you're creating, or scripts that are part of
> > downloaded source packages? I'm wondering if the scripts themselves are
> > using DOS-style CRLF markers instead of Unix-style LF, meaning that a
> > line like:
> >
> > #!/bin/sh
> >
> > Is actually:
> >
> > #!/bin/sh^M
> >
> > I.e. there's a stray CR at the end of the line.
> >
> > Simon.
> >
> >
> I may have found the problem but it makes little sense.  I'll further 
> research this over the weekend and post a follow-up.


((
Have only just done once-through of thread [been busy playing with riscos
on rpi/pi-top], so apols if foll is already dealt with.
))


For your debugging, be sure (of course, & if not already) to have the
likes of the following at the top of the script:

set -e;
set -u;
set -x;


For things like "script works but '. script' doesn't", it's usually some
var that's not expanding as presumed - e.g. tilde-expansion, PATH, HOME .



akh





--
-- 
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

Reply via email to