summaryrefslogtreecommitdiffstats
path: root/lzdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-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