Windows: Better support PAGER settings with spaces in the path
commitdcd08fe335020f3c257f8ecc5fb24fe3947f192b
authorJohannes Sixt <johannes.sixt@telecom.at>
Tue, 22 Jul 2008 11:42:58 +0000 (22 13:42 +0200)
committerJohannes Sixt <j6t@kdbg.org>
Tue, 10 Nov 2015 08:11:50 +0000 (10 09:11 +0100)
tree2e42cb9b98c1d201d6c6bffe7cf6608fff9dc8ee
parent7db3410ca15942c9f5032834d9b27ad016ea58a1
Windows: Better support PAGER settings with spaces in the path

On Windows, the pager was always run via a shell, which is not the case
on Unix, where the shell variant was only used as a fallback.

Thus, setting the pager, for example, like this:

  PAGER="C:/Program Files/msys/bin/less"

would fail; an extra set of quotes is needed:

  PAGER="\"C:/Program Files/msys/bin/less\""

With this patch the former setting works as well.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
pager.c