tests/test-pager.t
branchstable
changeset 49366 288de6f5d724
parent 48876 42d2b31cee0b
equal deleted inserted replaced
49364:e8ea403b1c46 49366:288de6f5d724
   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, '-')))