untouched bug in less package

Kristian Erik Hermansen kristian.hermansen at gmail.com
Sat Oct 27 16:31:34 UTC 2007

On 10/27/07, "Fergal Daly" <fergal at esatclear.ie> wrote:
> The basic problem is that lesspipe uses $SHELL to tell what the
> current shell is, but that's wrong, it only tells you what the login
> shell is when what you really want to know is which shell invoked
> lesspipe.
> I'm not sure there is a way to discover what invoked you, so maybe the
> invoker needs to pass that information, maybe set $SHELL for the eval.
> Any comments?

I don't know if this is something close to what you want, but how about?
$ readlink /proc/$$/exe

Or replace $$ with the invoking pid of your lesspipe process...
Kristian Erik Hermansen

More information about the Ubuntu-devel-discuss mailing list