Tighten error check in improved pager support.
commit57493e65ffd1aed8e3efeeb722d71db1f972345a
authorJohannes Sixt <j6t@kdbg.org>
Mon, 22 Feb 2010 08:27:18 +0000 (22 09:27 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Tue, 10 Nov 2015 08:11:51 +0000 (10 09:11 +0100)
treee548f499ff52a4492d55b3d9e2cf57b522721c5e
parentdcd08fe335020f3c257f8ecc5fb24fe3947f192b
Tighten error check in improved pager support.

The improved pager support first tries to run the pager command directly,
and if it fails, it tries again as a shell command.

However, previously the retry in a shell was attempted regardless of the
failure condition in the first try. This fixes it to retry only if the
failure was because the command was not found.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
pager.c