tests/test-pager.t
changeset 48876 42d2b31cee0b
parent 48256 56d037d07395
equal deleted inserted replaced
48875:6000f5b25c9b 48876:42d2b31cee0b
   409   content
   409   content
   410   paged! 'M a\n'
   410   paged! 'M a\n'
   411 
   411 
   412 Environment variables like LESS and LV are set automatically:
   412 Environment variables like LESS and LV are set automatically:
   413   $ cat > $TESTTMP/printlesslv.py <<EOF
   413   $ cat > $TESTTMP/printlesslv.py <<EOF
   414   > from __future__ import absolute_import
       
   415   > import os
   414   > import os
   416   > import sys
   415   > import sys
   417   > sys.stdin.read()
   416   > sys.stdin.read()
   418   > for name in ['LESS', 'LV']:
   417   > for name in ['LESS', 'LV']:
   419   >     sys.stdout.write(('%s=%s\n') % (name, os.environ.get(name, '-')))
   418   >     sys.stdout.write(('%s=%s\n') % (name, os.environ.get(name, '-')))