fixes-#15685-tools-that-paginate-show-spurious-less-output: less --version outputs to standard out not to standard error so this changes the redirect from 2> to > (#15720)
fixes-#15685-tools-that-paginate-show-spurious-less-output: Updated redirect to include stderr as well as stdout to not show any errors on screen
This commit is contained in:
parent
781de83762
commit
724e692f54
1 changed files with 1 additions and 1 deletions
|
@ -476,7 +476,7 @@ class CLI(object):
|
||||||
display.display(text)
|
display.display(text)
|
||||||
else:
|
else:
|
||||||
self.pager_pipe(text, os.environ['PAGER'])
|
self.pager_pipe(text, os.environ['PAGER'])
|
||||||
elif subprocess.call('(less --version) 2> /dev/null', shell = True) == 0:
|
elif subprocess.call('(less --version) &> /dev/null', shell = True) == 0:
|
||||||
self.pager_pipe(text, 'less')
|
self.pager_pipe(text, 'less')
|
||||||
else:
|
else:
|
||||||
display.display(text)
|
display.display(text)
|
||||||
|
|
Loading…
Reference in a new issue