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

Re: lynx upgrade issue?



On Thu, Aug 14, 2008 at 07:30:17AM +0200, i'll teach you to turn away. wrote:
> Thomas Dickey <dickey@radix.net> wrote:
> TD> You don't have to run it with root: "oldlynx" is a script that calls lynx.
> TD> So you could put "oldlynx" in your path and just run it...
> 
> $ oldlynx
> ./oldlynx: line 9: 3D/tmp/lynxcfg22579: No such file or directory
> ./oldlynx: line 13: 3D/tmp/lynxcfg22579: No such file or directory
> ./oldlynx: line 14: 3D/tmp/lynxcfg22579: No such file or directory
> 
> Configuration file "3D3D/tmp/lynxcfg22579" is not available.

That's mime-encoding (a nuisance to get rid of unless your newsreader
understands the attachments).  Here's another try (omitting the signature
which triggered the wrapping):

#!/bin/sh
# invoke lynx built with color-style, overriding the color options to use the
# non-color-style scheme -TD
 
my_cfg=${TMPDIR:-/tmp}/lynxcfg$$
trap "rm -f $my_cfg" 0 1 2 5 15
 
rm -f "$my_cfg"
echo "DEFAULT_COLORS:off" >>$my_cfg
if test -n "$LYNX_CFG" ; then
        echo "include:$LYNX_CFG" >>$my_cfg
fi
echo "COLOR_STYLE:" >>$my_cfg
echo "NESTED_TABLES:off" >>$my_cfg
 
LYNX_CFG=$my_cfg
export LYNX_CFG
unset LYNX_LSS
 
${LYNX_PROG-lynx} "$@"



-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


Reply to: