bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] ./bootstrap not working


From: Tim Ruehsen
Subject: Re: [Bug-wget] ./bootstrap not working
Date: Tue, 21 Aug 2012 09:49:24 +0200
User-agent: KMail/1.13.7 (Linux/3.2.0-3-amd64; KDE/4.8.4; x86_64; ; )

Am Monday 20 August 2012 schrieb David Linn:
> Hi,
> 
> I checked out the git repo of wget and tried building it. However, when I
> run ./bootstrap, I get the following error three times.
> 
> sed: -e expression #1, char 7: unknown option to 's'.

Maybe this is a side effect of a warning.
Looking at 'bootstrap' reveals:

me=$0
...
warn()
{
  for i
  do
    echo "$i"
  done | sed -e "s/^/$me: /" >&2
}

$me must not contain any slashes ('/'), which it does (me contains 
./bootstrap)...
As soon as warn() is called, you will see the above error message.

You can test it (using bash) with:
$ export me='./bootstrap'
$ echo message | sed "s/^/$me: /"
sed: -e expression #1, char 7: unknown option to `s'

The solution would be to use an sed delimeter that is very unlikely to exist 
in $me, e.g. |

$ export me='./bootstrap'
$ echo message | sed "s|^|$me: |"

Hand-edit your bootstrap script and try again. The real error message will 
show up and might give you a hint on what's wrong.

Tim



reply via email to

[Prev in Thread] Current Thread [Next in Thread]