diff options
author | Aron Griffis <agriffis@gentoo.org> | 2004-06-17 00:03:19 +0000 |
---|---|---|
committer | Aron Griffis <agriffis@gentoo.org> | 2004-06-17 00:03:19 +0000 |
commit | a37d42ef074ca5aec0acc3ad89d65d0f835ee712 (patch) | |
tree | 14f3ab344e8b6c2c0d6815eab8a6947ad09d603f /sys-apps/less/files | |
parent | fix non-gtk release, #54128 (diff) | |
download | historical-a37d42ef074ca5aec0acc3ad89d65d0f835ee712.tar.gz historical-a37d42ef074ca5aec0acc3ad89d65d0f835ee712.tar.bz2 historical-a37d42ef074ca5aec0acc3ad89d65d0f835ee712.zip |
Fix a quoting issue in lesspipe.sh-r2 and add a trap to prevent 'Broken pipe' messages. Thanks to Glen in bug 38854
Diffstat (limited to 'sys-apps/less/files')
-rw-r--r-- | sys-apps/less/files/digest-less-382-r2 (renamed from sys-apps/less/files/digest-less-382-r1) | 0 | ||||
-rw-r--r-- | sys-apps/less/files/lesspipe.sh-r2 | 4 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sys-apps/less/files/digest-less-382-r1 b/sys-apps/less/files/digest-less-382-r2 index b6ee823b18a9..b6ee823b18a9 100644 --- a/sys-apps/less/files/digest-less-382-r1 +++ b/sys-apps/less/files/digest-less-382-r2 diff --git a/sys-apps/less/files/lesspipe.sh-r2 b/sys-apps/less/files/lesspipe.sh-r2 index af2e589164bf..1663589397b2 100644 --- a/sys-apps/less/files/lesspipe.sh-r2 +++ b/sys-apps/less/files/lesspipe.sh-r2 @@ -3,6 +3,8 @@ # Preprocessor for 'less'. Used when this environment variable is set: # LESSOPEN="|lesspipe.sh %s" +trap 'exit 0' PIPE + F=$1 # so we can use "set" later to play with positional params case "$F" in @@ -35,7 +37,7 @@ case "$F" in *) set -- $(file -L "$F") if [[ $2 == Linux/* || $3 == Linux/* || $2 == ELF || $3 == ELF ]]; then - strings $F + strings "$F" fi ;; esac |