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