less.sh: Avoid unnecessary stat call
While at it, remove unnecessary executable bits (in git) and shebang from less.*sh.
This commit is contained in:
parent
3628f016fe
commit
11bfc57bdf
1
less.csh
Executable file → Normal file
1
less.csh
Executable file → Normal file
@ -1,4 +1,3 @@
|
|||||||
#!/bin/csh
|
|
||||||
# less initialization script (csh)
|
# less initialization script (csh)
|
||||||
if ( -x /usr/bin/lesspipe.sh ) then
|
if ( -x /usr/bin/lesspipe.sh ) then
|
||||||
if ( $?LESSOPEN && { eval 'test ! -z "$LESSOPEN"' } ) then
|
if ( $?LESSOPEN && { eval 'test ! -z "$LESSOPEN"' } ) then
|
||||||
|
2
less.sh
Executable file → Normal file
2
less.sh
Executable file → Normal file
@ -1,4 +1,4 @@
|
|||||||
# less initialization script (sh)
|
# less initialization script (sh)
|
||||||
if [ -x /usr/bin/lesspipe.sh ] && [ -z "$LESSOPEN" ]; then
|
if [ -z "$LESSOPEN" ] && [ -x /usr/bin/lesspipe.sh ]; then
|
||||||
export LESSOPEN="|/usr/bin/lesspipe.sh %s"
|
export LESSOPEN="|/usr/bin/lesspipe.sh %s"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user