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: Ángel González
Subject: Re: [Bug-wget] ./bootstrap not working
Date: Tue, 21 Aug 2012 16:16:36 +0200
User-agent: Thunderbird

Am 21/08/12 09:49, Tim Ruehsen schrieb:
> 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
Or simply hardcode me to "bootstrap"




reply via email to

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