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

2019-02-19 Thread Pavel Raiskup
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" > >

relocatable-prog: Use $ORIGIN trick on more platforms

2019-02-19 Thread Bruno Haible
Paul Smith noted on gnu-prog-discuss that other systems than glibc have support for $ORIGIN in rpath. This patch changes the 'relocatable-prog' module to make use of this feature, thus removing the need for a "wrapper"/"trampoline" executable on these platforms. Tested on - FreeBSD 11, - NetBS

progreloc: improve platform specific code

2019-02-19 Thread Bruno Haible
This set of patches improve the platform specific code in progreloc.c. Most BSD systems and Solaris nowadays have a way to retrieve the name of the current executable, in a way similar to /proc/self/exe on Linux. 2019-02-19 Bruno Haible progreloc: Simplify code for Android. *

Re: shell variable references - coding style

2019-02-19 Thread Jim Meyering
On Tue, Feb 19, 2019 at 10:02 AM Bruno Haible wrote: > > Hi Pavel, > > > > [...] > > > This patch fixes both issues, and makes the IFS handling a bit more > > > robust. > > > [...] > > > > > -case $_fpf_arg in > > > +case "$_fpf_arg" in > > > [...] > > > - fpf_dirs=$1 ; shift > > > - fp

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

2019-02-19 Thread Bruno Haible
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]

Re: shell variable references - coding style

2019-02-19 Thread Bruno Haible
Hi Pavel, > > [...] > > This patch fixes both issues, and makes the IFS handling a bit more robust. > > [...] > > > -case $_fpf_arg in > > +case "$_fpf_arg" in > > [...] > > - fpf_dirs=$1 ; shift > > - fpf_cb=$1 ; shift > > + fpf_dirs="$1"; shift > > + fpf_cb="$1"; shift > > [...] >

Re: Gnulib's alloca.h used even when there is a system header

2019-02-19 Thread Eli Zaretskii
> From: Bruno Haible > Cc: Eli Zaretskii , Paul Eggert > Date: Tue, 19 Feb 2019 00:32:24 +0100 > > Hi Eli, > > > ./alloca.h:40:18: error: inlining failed in call to always_inline > > '__builtin_alloca': function not considered for inlining > > # define alloca __builtin_alloca > >

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

2019-02-19 Thread Pavel Raiskup
Thanks for working on this, Bruno! Only nits.. On Thursday, February 14, 2019 8:53:33 PM CET Bruno Haible wrote: > [...] > This patch fixes both issues, and makes the IFS handling a bit more robust. > [...] > -case $_fpf_arg in > +case "$_fpf_arg" in > [...] > - fpf_dirs=$1 ; shift > -

[PATCH] ISO 8601 basic format and decimal hours, minutes

2019-02-19 Thread Alex Eulenberg
1. Accept dates in the ISO 8601 basic date and time format. This is a format allowing the expression of point in time to the resolution of a second with only alphanumeric characters -- no spaces, no punctuation -- suitable for use in fields that cannot contain spaces, hyphens, or colons. 2. Accept