lynx and lynx-current packages start up error message

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

lynx and lynx-current packages start up error message

Jude DaShiell-2
I take it since the following message goes out over stderr it's some kind
of error.
sh: line 0: test: .: binary operator expected

This error happens after makepkg gets used to make and install
lynx-current and happened earlier with lynx.
To clear this error, do I need to adjust some configuration on this end?

--
Reply | Threaded
Open this post in threaded view
|

Re: lynx and lynx-current packages start up error message

David C. Rankin
On 04/16/2018 09:16 AM, Jude DaShiell wrote:
> I take it since the following message goes out over stderr it's some kind of
> error.
> sh: line 0: test: .: binary operator expected
>
> This error happens after makepkg gets used to make and install lynx-current
> and happened earlier with lynx.
> To clear this error, do I need to adjust some configuration on this end?
>

sh: line 0: test: .: binary operator expected

Generally means that there is an unquoted argument in a shell 'test', e.g.

  if [ $var = 'some string' ]

or

  if test $var = 'some string'

In both equivalent cases above, if $var contains a 'space', the test fails
with the error you report. Double check your PKGBUILD or and of the install
scripts.

--
David C. Rankin, J.D.,P.E.