| 192 |
- |
1 |
# less initialization script (csh)
|
|
|
2 |
|
|
|
3 |
# All less.*sh files should have the same semantics!
|
|
|
4 |
|
|
|
5 |
# In case you are curious, the test for non-emptiness is not as easy as in
|
|
|
6 |
# Bourne shell. This "eval" construct is probably inspired by Stack
|
|
|
7 |
# Overflow question 13343392.
|
|
|
8 |
if ( $?LESSOPEN && { eval 'test ! -z "$LESSOPEN"' } ) then
|
|
|
9 |
:
|
|
|
10 |
else
|
|
|
11 |
if ( -x /usr/bin/lesspipe.sh ) then
|
|
|
12 |
# The '||' here is intentional, see rhbz#1254837.
|
|
|
13 |
setenv LESSOPEN "||/usr/bin/lesspipe.sh %s"
|
|
|
14 |
endif
|
|
|
15 |
endif
|