lesspipe relies on $SHELL to tell which shell it's running from
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
less (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: less
$SHELL is set once, on login so doesn't tell you what shell you're
currently running from. I log in to tcsh and when I execute bash as a
shell I see.
bash: setenv: command not found
bash: setenv: command not found
I traced this back to this piece of /usr/bin/lesspipe
case "$SHELL" in
*)
esac
I'm not sure what is the right thing to do. tcsh sets $shell. Or maybe
you could monkey around with $PPID to figure it out but that seems
really icky.
I'm another tcsh user that encountered the same "bash: setenv: command not found" errors and traced it back to the same source. Definitely a logic error in /usr/bin/lesspipe.