Commit 9a71068c authored by Gaël Bonithon's avatar Gaël Bonithon
Browse files

xdt-autogen: Fallback on `\n` as IFS if `\1` is not supported

Fixes #54.
parent bb06a93d
Pipeline #12991 passed with stages
in 48 seconds
......@@ -41,6 +41,12 @@ m4macrodir="${datarootdir}/aclocal"
default_IFS=$IFS
special_IFS=$(printf '\1')
# fallback on '\n' if '\1' isn't well supported: it is POSIX, but e.g. bash 3.2.57
# on macOS doesn't support it
IFS=$special_IFS
[ x$IFS = x ] || special_IFS=$(printf '\n')
IFS=$default_IFS
##
## a few portability tests
##
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment