Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!64xdt-autogen: Fallback on `\n` as IFS if `\1` is not supported
Pipeline #12991 passed
......@@ -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
##
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment