diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2022-07-18 19:18:48 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-07-18 19:18:48 +0300 |
commit | bad61b5997e6647911974022bfb72f3d4818a594 (patch) | |
tree | 77de708eaae140b4779e4598b4b0e2e39c865c4c /src/scripts/xzgrep.in | |
parent | xzgrep: Add more LC_ALL=C to avoid bugs with multibyte characters. (diff) | |
download | xz-bad61b5997e6647911974022bfb72f3d4818a594.tar.xz |
Scripts: Use printf instead of echo in a few places.
It's a good habbit as echo has some portability corner cases
when the string contents can be anything.
Diffstat (limited to 'src/scripts/xzgrep.in')
-rw-r--r-- | src/scripts/xzgrep.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/xzgrep.in b/src/scripts/xzgrep.in index c851c7ed..2cb9420c 100644 --- a/src/scripts/xzgrep.in +++ b/src/scripts/xzgrep.in @@ -116,7 +116,7 @@ while test $# -ne 0; do (-[ef]* | --file | --file=* | --reg*) have_pat=1;; (--h | --he | --hel | --help) - echo "$usage" || exit 2 + printf '%s\n' "$usage" || exit 2 exit;; (-H | --wi | --wit | --with | --with- | --with-f | --with-fi \ | --with-fil | --with-file | --with-filen | --with-filena | --with-filenam \ @@ -132,7 +132,7 @@ while test $# -ne 0; do (-h | --no-f*) no_filename=1;; (-V | --v | --ve | --ver | --vers | --versi | --versio | --version) - echo "$version" || exit 2 + printf '%s\n' "$version" || exit 2 exit;; esac |