Re: Command line arguments depend on locale

2013-01-31 Thread Eric Blake
On 01/31/2013 11:25 AM, Pádraig Brady wrote: > A less clear cut example is printf(1). > POSIX states that LC_NUMERIC controls the format > of the numbers _written_. > In coreutils we're careful to reset to the C locale > so that strtod etc. work consistently. POSIX says that in non-C locales, strt

Re: Command line arguments depend on locale

2013-01-31 Thread Pádraig Brady
On 01/30/2013 11:05 PM, Benny Amorsen wrote: Apparently ping has now started interpreting its command line arguments depending on locale. I.e. ping -i 0.1 no longer works in locales where comma is the decimal separator. This makes it difficult to call system commands. The only workaround is to s

Re: [PATCH 1/2] drop -i file

2013-01-31 Thread Andreas Schwab
Chet Ramey writes: > It's a cheap and easy way to protect yourself from `rm *'. If you put it in gitignore you don't need to clutter up the repository. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for somet

sh-mode subshell breaks on exported shell functions containing a dash

2013-01-31 Thread Tomáš Trnka
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' - DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu' - DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale'

Re: [PATCH 2/2] use AC_CHECK_TOOL with `ar` rather than AC_CHECK_PROG

2013-01-31 Thread Chet Ramey
> The TOOL variant will automatically search for a $host prefixed program > (e.g. x86_64-pc-linux-gnu) rather than looking for `ar` only. This is > useful when cross-compiling and it matches the behavior of the other > tools that configure relies on (e.g. cc & ranlib). Thanks for the fix. Chet

Re: [PATCH 1/2] drop -i file

2013-01-31 Thread Chet Ramey
> Guessing it was added by accident while testing. You guessed wrong. It's a cheap and easy way to protect yourself from `rm *'. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRUc...@case.eduhtt

Re: More fun with IFS

2013-01-31 Thread Chet Ramey
On 1/30/13 1:03 AM, Dan Douglas wrote: > Hi everyone, and welcome to another edition of IBOTD (IFS-bug-of-the-day), > featuring everyone's favorite Bourne shell kludge: word-splitting! > > On today's episode - inconsistencies within assignments that depend upon > quoting. Though I can't take cre

[PATCH 1/2] drop -i file

2013-01-31 Thread Mike Frysinger
Guessing it was added by accident while testing. Signed-off-by: Mike Frysinger --- -i | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 -i diff --git a/-i b/-i deleted file mode 100644 index e69de29..000 -- 1.8.0.2

[PATCH 2/2] use AC_CHECK_TOOL with `ar` rather than AC_CHECK_PROG

2013-01-31 Thread Mike Frysinger
The TOOL variant will automatically search for a $host prefixed program (e.g. x86_64-pc-linux-gnu) rather than looking for `ar` only. This is useful when cross-compiling and it matches the behavior of the other tools that configure relies on (e.g. cc & ranlib). Signed-off-by: Mike Frysinger ---