|
Ivana Varekova |
18956e2 |
# less initialization script (csh)
|
|
|
32b553b |
|
|
|
32b553b |
# All less.*sh files should have the same semantics!
|
|
|
32b553b |
|
|
|
32b553b |
# In case you are curious, the test for non-emptiness is not as easy as in
|
|
|
32b553b |
# Bourne shell. This "eval" construct is probably inspired by Stack
|
|
|
32b553b |
# Overflow question 13343392.
|
|
|
32b553b |
if ( $?LESSOPEN && { eval 'test ! -z "$LESSOPEN"' } ) then
|
|
|
32b553b |
:
|
|
|
32b553b |
else
|
|
|
32b553b |
if ( -x /usr/bin/lesspipe.sh ) then
|
|
|
8e7f15f |
# The '||' here is intentional, see rhbz#1254837.
|
|
|
8e7f15f |
setenv LESSOPEN "||/usr/bin/lesspipe.sh %s"
|
|
Viktor Jancik |
3f003aa |
endif
|
|
Ivana Varekova |
18956e2 |
endif
|