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