diff options
author | CoprDistGit <infra@openeuler.org> | 2024-07-14 04:12:04 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-07-14 04:12:04 +0000 |
commit | bf4050f2f1952c876915397a03adee45fa31ac77 (patch) | |
tree | f5b6dfe0a06753959c878be691446baa131124b7 /less.csh | |
parent | e66da3d58e62217d7864b58ea46aafc60a64ba00 (diff) |
automatic import of lessopeneuler24.03_LTS
Diffstat (limited to 'less.csh')
-rw-r--r-- | less.csh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/less.csh b/less.csh new file mode 100644 index 0000000..d3c1f8e --- /dev/null +++ b/less.csh @@ -0,0 +1,15 @@ +# 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 |