Skip to content

Less fails to read pipe from dict when executed in a urxvt subshell. #372

@tzcrawford

Description

@tzcrawford

The command
urxvt -e sh -c "dict -d english 'blue' | less "
produces an empty less instance with no content or an empty string. Although
urxvt -e sh -c "dict -d english 'blue' | more "
works as expected, and so does
dict -d english 'blue' | less and urxvt -e sh -c "echo -e 'foo foo\n bar' | less".
So just running the three programs in conjuction is the issue, running either dict or urxvt alone with less is working. With xterm 380-1 subshell, I get the following command to execute as it should
xterm -e "dict -d english 'blue' | less".

Right now I am using:

less 1:633-1
rxvt-unicode 9.31-2 (9.26-3 appears to be the same)
rxvt-unicode-terminfo 9.31-2
dictd 1.13.1-4
linux 6.3.4-arch1-1 (Arch Linux build)
bash 5.1.16
perl 5.36.1-1 (under urxvt)
on an Acer Aspire E5-521 V1.03 laptop, AMD E2-6110 APU

This bug started occuring with v633 on the Arch Linux build, although v608 was fine. I can confirm at commit c8df315 the bug is still occuring.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions