[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnulib-tool: Improve handling of multiple --local-dir options
From: |
Bruno Haible |
Subject: |
Re: gnulib-tool: Improve handling of multiple --local-dir options |
Date: |
Tue, 19 Feb 2019 19:18:57 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; ) |
Hi Pavel,
> > makes the IFS handling a bit more robust.
What I meant is that
save_IFS="$IFS"
for fpf_dir in $fpf_dirs
do
IFS="$save_IFS"
[Some more code]
done
IFS="$save_IFS"
is more robust than
save_IFS="$IFS"
for fpf_dir in $fpf_dirs
do
[Some more code]
done
IFS="$save_IFS"
because the [Some more code] may invoke word splitting, and as a programmer
I would expect this word splitting to be performed against the default IFS.
Bruno