diff --git a/awscli/compat.py b/awscli/compat.py index 6ad8ae69ea0f..10bb2fc08163 100644 --- a/awscli/compat.py +++ b/awscli/compat.py @@ -61,11 +61,14 @@ is_macos = sys.platform == 'darwin' +less_exists = os.system('command -v less > /dev/null') + if is_windows: default_pager = 'more' +elif less_exists == '0': + default_pager = 'less' else: - default_pager = 'less -R' - + default_pager = '' class StdinMissingError(Exception): def __init__(self):