Re: libraries of shell script functions

2008-09-18 Thread Karl Berry
Subject: Re: libraries of shell script functions I just thought I should mention that Ralf Engelschall maintains GNU shtool which is somewhat along these lines. http://www.gnu.org/software/shtool/ I had never heard of it myself before I noticed his release this summer.

Re: Somewhat off-topic, but hard to find better portability people.

2008-09-18 Thread Peter Seebach
In message <[EMAIL PROTECTED]>, "James Youngman" writes: >On Wed, Sep 17, 2008 at 5:12 AM, Peter Seebach <[EMAIL PROTECTED]> wrote: > >> set -- args > >Hmm, I certainly have a habit of doing this instead: > >set x blablablablabla >shift > >However, the only source file I can find that still does t

Re: Somewhat off-topic, but hard to find better portability people.

2008-09-18 Thread James Youngman
On Wed, Sep 17, 2008 at 5:12 AM, Peter Seebach <[EMAIL PROTECTED]> wrote: > set -- args Hmm, I certainly have a habit of doing this instead: set x blablablablabla shift However, the only source file I can find that still does this was written in 2002. My guess is that I have used a system whe

Re: libraries of shell script functions

2008-09-18 Thread Paolo Bonzini
Bruno Haible wrote: > Paolo Bonzini wrote: >> For now, I think Peter's select function could go in m4sh. m4 is the >> linker, then. > > How does one use "m4 as the linker"? Where is this documented? You write your script in m4sh, not in pure Bourne shell. The m4sh->sh conversion is done with au

Re: strdup

2008-09-18 Thread Simon Josefsson
Getaddrinfo does not assume the ENOMEM behaviour of strdup, and being maintainer for that module, I removed the strdup dependency. /Simon >From 0ca0a3c52fb45689e0ba8d1063272193bf2bd1db Mon Sep 17 00:00:00 2001 From: Simon Josefsson <[EMAIL PROTECTED]> Date: Thu, 18 Sep 2008 15:46:30 +0200 Subject

Re: strdup

2008-09-18 Thread Simon Josefsson
Bruno Haible <[EMAIL PROTECTED]> writes: > Hi Simon, > >> Are there any platforms we care about that lack strdup? >> >> doc/posix-functions/strdup.texi contains: >> >> Portability problems fixed by Gnulib: >> @itemize >> @item >> This function is missing on some old platforms. >> @item >> This f

Re: libraries of shell script functions

2008-09-18 Thread Bruno Haible
Paolo Bonzini wrote: > For now, I think Peter's select function could go in m4sh. m4 is the > linker, then. How does one use "m4 as the linker"? Where is this documented? I also have some shell functions to contribute: - func_tmpdir - func_find_curr_installdir, func_find_prefixes (relocatabl

Re: strdup

2008-09-18 Thread Bruno Haible
Hi Simon, > Are there any platforms we care about that lack strdup? > > doc/posix-functions/strdup.texi contains: > > Portability problems fixed by Gnulib: > @itemize > @item > This function is missing on some old platforms. > @item > This function has no prototype in @code{} on some old platfor

Re: Issue with ls -v / sort -V and strverscmp() usage

2008-09-18 Thread Kamil Dudka
On Wednesday 17 September 2008 13:13:03 you wrote: > - Fix the obvious bugs, for example, you need to cast 'char' values to > 'unsigned char' before passing them to functions. > - Streamline the operation: Can't you get rid of copying the two strings? > For example, by changing verrevc

Re: vasnprintf(-0.0L) on Irix [was: snapshot in preparation for m4 1.4.12]

2008-09-18 Thread Bruno Haible
Eric Blake wrote: > with both pieces in place, I've tested that Irix 5.3 > passes the testsuite. So here's what I'm pushing: > > From: Eric Blake <[EMAIL PROTECTED]> > Date: Tue, 16 Sep 2008 09:36:24 -0600 > Subject: [PATCH] vasnprintf: support Irix 5.3 > > * lib/vasnprintf.c (VASNPRINTF): Also

Re: libraries of shell script functions

2008-09-18 Thread Paolo Bonzini
Bruno Haible wrote: > Hi, > > If you want to contribute shell script functions to gnulib, we would need some > kind of "linker" for shell scripts: A tool which combines a set of shell > script fragments, each defining a number of functions, and a "main" script, > into a complete, runnable shell sc

strdup

2008-09-18 Thread Simon Josefsson
Are there any platforms we care about that lack strdup? doc/posix-functions/strdup.texi contains: Portability problems fixed by Gnulib: @itemize @item This function is missing on some old platforms. @item This function has no prototype in @code{} on some old platforms. @end itemize There are a f

Re: [PATCH]: update tls and lock tests, gl_cond_t WIN32 implementation

2008-09-18 Thread Yoann Vandoorselaere
Le lundi 15 septembre 2008 à 14:12 +0200, Yoann Vandoorselaere a écrit : > Le dimanche 14 septembre 2008 à 20:46 +0200, Yoann Vandoorselaere a > écrit : > > Hi, > > > > Attached is a patch implementing the following glthread fixes: > > > > - Correct pthread_atfork() detection. > > > > - Add the

[PATCH] vasnprintf.c: avoid link error on Fedora 10 alpha

2008-09-18 Thread Jim Meyering
* lib/vasnprintf.c (decimal_point_char): Define this function also when only NEED_PRINTF_INFINITE_LONG_DOUBLE is defined. --- Hi Bruno, Building coreutils without this change, I get link errors like these: .../vasnprintf.c:3185: undefined reference to `decimal_point_char' .../vasnprintf.