summaryrefslogtreecommitdiffstats
path: root/lzdiff
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 07:23:45 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2015-11-07 07:23:45 +0000
commit2f1db1facab89cd2eda64441f9b730a3831f5746 (patch)
tree85afd6f51fae791905b39e7ec5e6d7aa6c79227d /lzdiff
parentAdding debian version 1.6~pre2-1. (diff)
downloadlzip-2f1db1facab89cd2eda64441f9b730a3831f5746.tar.xz
lzip-2f1db1facab89cd2eda64441f9b730a3831f5746.zip
Merging upstream version 1.6~pre3.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'lzdiff')
-rwxr-xr-xlzdiff20
1 files changed, 10 insertions, 10 deletions
diff --git a/lzdiff b/lzdiff
index c3c605d..b4e60d0 100755
--- a/lzdiff
+++ b/lzdiff
@@ -46,7 +46,7 @@ while [ x"$1" != x ] ; do
echo "Lzip home page: http://www.nongnu.org/lzip/lzip.html"
exit 0 ;;
--version | --ve* | -V)
- echo "Lzdiff 0.4"
+ echo "Lzdiff 0.5"
echo "Copyright (C) 2009 Antonio Diaz Diaz."
echo "This script is free software: you have unlimited permission"
echo "to copy, distribute and modify it."
@@ -62,7 +62,7 @@ while [ x"$1" != x ] ; do
--cmp)
diff_prog=cmp ;;
-)
- echo "${invocation_name}: reading from stdin not supported\n"
+ echo "${invocation_name}: reading from stdin not supported"
exit 1 ;;
--)
;;
@@ -93,21 +93,21 @@ fi
if test -z "${file2}"; then
case "${file1}" in
*.gz)
- file2=`echo "${file1}" | sed 's/.gz$//'` ;;
+ file2=`printf "%s" "${file1}" | sed 's/.gz$//'` ;;
*.tgz)
- file2=`echo "${file1}" | sed 's/tgz$/tar/'` ;;
+ file2=`printf "%s" "${file1}" | sed 's/tgz$/tar/'` ;;
*.bz2)
- file2=`echo "${file1}" | sed 's/.bz2$//'` ;;
+ file2=`printf "%s" "${file1}" | sed 's/.bz2$//'` ;;
*.tbz)
- file2=`echo "${file1}" | sed 's/tbz$/tar/'` ;;
+ file2=`printf "%s" "${file1}" | sed 's/tbz$/tar/'` ;;
*.tbz2)
- file2=`echo "${file1}" | sed 's/tbz2$/tar/'` ;;
+ file2=`printf "%s" "${file1}" | sed 's/tbz2$/tar/'` ;;
*.lz)
- file2=`echo "${file1}" | sed 's/.lz$//'` ;;
+ file2=`printf "%s" "${file1}" | sed 's/.lz$//'` ;;
*.tlz)
- file2=`echo "${file1}" | sed 's/tlz$/tar/'` ;;
+ file2=`printf "%s" "${file1}" | sed 's/tlz$/tar/'` ;;
*)
- file2="${file1}"; file1="${file1}${default_ext}" ;;
+ file2="${file1}${default_ext}" ;;
esac
fi