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-24 11:38:19 +0300 |
commit | 4a61867a874c60b31448d2d4f3c276efba85a243 (patch) | |
tree | 5f343d42ddd9989c18c4c59fa04f78c686bdb0eb /src/scripts/xzgrep.in | |
parent | xzgrep: Add more LC_ALL=C to avoid bugs with multibyte characters. (diff) | |
download | xz-4a61867a874c60b31448d2d4f3c276efba85a243.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 '')
-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 |