5c4f29e5c8
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/less#272509e536116b12c1fcc1135e6c5890ec5f64cc
16 lines
500 B
Tcsh
16 lines
500 B
Tcsh
# less initialization script (csh)
|
|
|
|
# All less.*sh files should have the same semantics!
|
|
|
|
# In case you are curious, the test for non-emptiness is not as easy as in
|
|
# Bourne shell. This "eval" construct is probably inspired by Stack
|
|
# Overflow question 13343392.
|
|
if ( $?LESSOPEN && { eval 'test ! -z "$LESSOPEN"' } ) then
|
|
:
|
|
else
|
|
if ( -x /usr/bin/lesspipe.sh ) then
|
|
# The '||' here is intentional, see rhbz#1254837.
|
|
setenv LESSOPEN "||/usr/bin/lesspipe.sh %s"
|
|
endif
|
|
endif
|