bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnulib-tool: Improve handling of multiple --local-dir options


From: Pavel Raiskup
Subject: Re: gnulib-tool: Improve handling of multiple --local-dir options
Date: Wed, 20 Feb 2019 08:03:16 +0100

On Tuesday, February 19, 2019 7:18:57 PM CET Bruno Haible wrote:
> 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.

Makes sense, thanks.  I was only confused by the var="$quoted_var" style,
which I was before discouraged from.

Pavel






reply via email to

[Prev in Thread] Current Thread [Next in Thread]