Re: sed --posix does not catch incomplete arguments

2010-06-22 Thread Ralf Wildenhues
[ moving from bug-autoconf ] Hi Bruno, Eric, * Bruno Haible wrote on Tue, Jun 22, 2010 at 01:42:20AM CEST: Ralf Wildenhues wrote: Here's what I see on Solaris 10: $ echo a | sed -n -e 'i\' -e 0 Unrecognized command: 0 JFTR, while i\ is a problem for some seds, I don't find

Re: sed --posix does not catch incomplete arguments

2010-06-22 Thread Bruno Haible
Hi Ralf, For +example, the @command{sed} programs on Solaris 10, HP-UX 11, and AIX +don't allow splitting in this case: ... +In practice, however, it is portable to pass fragments to separate +...@option{-e} options that each represent full @command{sed} commands, +even if that is not

Re: Document, test, and fix AT_ARG_OPTION, AT_ARG_OPTION_ARG.

2010-06-22 Thread Gary V. Vaughan
Hi Eric, Ralf, On 18 Jun 2010, at 03:00, Eric Blake wrote: On 06/15/2010 11:09 PM, Ralf Wildenhues wrote: Undocumented good features are a waste of goodness! :-) I'm not sure in which way this code may overlap, conflict, or profit from, Gary's option parsing endeavor, but a code search

Re: Autotest doc update

2010-06-22 Thread Eric Blake
On 06/18/2010 10:45 PM, Ralf Wildenhues wrote: This is purely nits: it's either behind the scenes or under the hood, but not under the scene. I think. Good catch on idiomatic usages. All of the changes looked good to me; please apply. -- Eric Blake ebl...@redhat.com+1-801-349-2682

Re: Avoid unportable nested double-quotes and backquotes.

2010-06-22 Thread Bruno Haible
Hi Ralf, With the very expressions you are using, you are getting lucky to not hit the bug. If you just add a space before $ac_dir, then all of a sudden Solaris sh and ksh and other old shells fall apart quickly: $ ac_dir=./foo $ ac_dir_suffix=/`echo $ac_dir|sed 's%^\./%%'` ksh: :

be consistent in AS_VAR_PUSHDEF example

2010-06-22 Thread Peter Johansson
Hello, In the example for AS_VAR_PUSHDEF the code says 'available' while the example output says 'detected'. This tiny patch fixes that. Thank, Peter diff --git a/ChangeLog b/ChangeLog index d59487e..cc13f36 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-06-22 Peter Johansson

Re: sed --posix does not catch incomplete arguments

2010-06-22 Thread Eric Blake
On 06/21/2010 05:36 PM, Bruno Haible wrote: Hi Ralf, Paul, Does this submission format work? (I don't know whether git-merge-changelog is active when you do git am.) If not, please use patch -p1. 'git am -3' on the entire .eml file choked for some reason (git-merge-changelog wasn't able to

Re: be consistent in AS_VAR_PUSHDEF example

2010-06-22 Thread Eric Blake
On 06/22/2010 07:09 PM, Peter Johansson wrote: Hello, In the example for AS_VAR_PUSHDEF the code says 'available' while the example output says 'detected'. This tiny patch fixes that. Thanks; pushed. -- Eric Blake ebl...@redhat.com+1-801-349-2682 Libvirt virtualization library

[PATCH] Document a mostly-portable sed trick.

2010-06-22 Thread Eric Blake
See also http://austingroupbugs.net/view.php?id=262 and http://austingroupbugs.net/view.php?id=264. * doc/autoconf.texi (Limitations of Usual Tools) sed: Mention limitations of sed -e. Signed-off-by: Eric Blake ebl...@redhat.com --- +In practice, however, it is portable to pass fragments to

Re: Avoid unportable nested double-quotes and backquotes.

2010-06-22 Thread Ralf Wildenhues
Hi Bruno, * Bruno Haible wrote on Wed, Jun 23, 2010 at 02:43:12AM CEST: Worse yet, not all shells understand @code{`...@dots{}\@dots{}\@dots{}`} -the same way. There is just no portable way to use double-quoted +the same way (@pxref{pdksh}). Here I would refer to both 'ksh' and