diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 07:23:39 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 07:23:39 +0000 |
commit | 0966aef6cc18db439eb59a6325a0bac9462b428b (patch) | |
tree | 7e86146c8af05d5eeea569d6022cfeb848fb3fa5 /lzdiff | |
parent | Adding upstream version 1.6~pre2. (diff) | |
download | lzip-0966aef6cc18db439eb59a6325a0bac9462b428b.tar.xz lzip-0966aef6cc18db439eb59a6325a0bac9462b428b.zip |
Adding upstream version 1.6~pre3.upstream/1.6_pre3
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'lzdiff')
-rwxr-xr-x | lzdiff | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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 |