untouched bug in less package
Markus Hitter
mah at jump-ing.de
Fri Oct 26 19:03:45 UTC 2007
Am 26.10.2007 um 16:09 schrieb Fergal Daly:
> I filed this bug in June
>
> https://bugs.launchpad.net/ubuntu/+source/less/+bug/120459
> [...]
> The basic problem is that lesspipe uses $SHELL to tell what the
> current shell is,
I'm not sure wether $SHELL contains the preferred shell (my opinion)
or the current shell (your opinion).
One approach to the actual problem coming to mind is to evaluate,
wether $shell is set:
PARENTSHELL="$SHELL"
if [ ! -z "$shell" ]; then
PARENTSHELL="$shell"
fi
case "$PARENTSHELL" in
...
or, to require setting SHELL when using lesspipe (man page, shell
comment change):
SHELL=sh eval lesspipe
(dunno csh equivalent)
Cheers,
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
More information about the Ubuntu-devel-discuss
mailing list