xz-analysis-mirror/src/scripts
Lasse Collin 097c7b67ce xzgrep: Fix compatibility with old shells.
Running the current xzgrep on Slackware 10.1 with GNU bash 3.00.15:

    xzgrep: line 231: syntax error near unexpected token `;;'

On SCO OpenServer 5.0.7 with Korn Shell 93r:

    syntax error at line 231 : `;;' unexpected

Turns out that some old shells don't like apostrophes (') inside
command substitutions. For example, the following fails:

    x=$(echo foo
    # asdf'zxcv
    echo bar)
    printf '%s\n' "$x"

The problem was introduced by commits
69d1b3fc29 (2022-03-29),
bd7b290f3f (2022-07-18), and
a648978b20 (2022-07-19).
5.2.6 is the only stable release that included
this problem.

Thanks to Kevin R. Bulgrien for reporting the problem
on SCO OpenServer 5.0.7 and for providing the fix.
2022-09-16 14:07:03 +03:00
..
Makefile.am Build: Add support for translated man pages using po4a. 2020-02-07 15:32:21 +02:00
xzdiff.1 xzdiff: Update the man page about the exit status. 2021-06-04 19:02:38 +03:00
xzdiff.in Scripts: Use printf instead of echo in a few places. 2022-07-18 19:18:48 +03:00
xzgrep.1 xzgrep man page: Document exit statuses. 2022-07-19 23:19:49 +03:00
xzgrep.in xzgrep: Fix compatibility with old shells. 2022-09-16 14:07:03 +03:00
xzless.1 Major man page updates. 2010-09-27 23:29:34 +03:00
xzless.in Scripts: Use printf instead of echo in a few places. 2022-07-18 19:18:48 +03:00
xzmore.1 Man pages: Use similar syntax for synopsis as in xz. 2013-06-30 18:02:27 +03:00
xzmore.in Scripts: Use printf instead of echo in a few places. 2022-07-18 19:18:48 +03:00