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