From 5826d488784f3ee496c84a7c1d44a7dda4138658 Mon Sep 17 00:00:00 2001 From: Sverrir Valgeirsson Date: Wed, 22 Feb 2017 00:02:00 +0100 Subject: [PATCH] Make NoPager actually not invoke a pager On windows10 in CMD and PowerShell the --no-pager switch didn't work as it would try to use 'cat'. This change makes the NoPager code not invoke a pager instead. --- portable.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/portable.py b/portable.py index 84c8995b..9042d58b 100644 --- a/portable.py +++ b/portable.py @@ -273,8 +273,7 @@ def RunWindowsPager(cmd): pager.active = True def NoPager(cmd): - if not isUnix(): - RunWindowsShell(cmd) + return def RunWindowsShell(cmd): executable = _SelectCatenate(cmd.manifest.globalConfig)