[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: portability note about 'printf'
From: |
Paul Eggert |
Subject: |
Re: portability note about 'printf' |
Date: |
Thu, 26 Apr 2007 12:51:34 -0700 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
Thanks, I installed this into the Autoconf manual:
2007-04-26 Paul Eggert <address@hidden>
* doc/autoconf.texi (Limitations of Builtins): Warn about Solaris
/bin/printf '%010000x' 123. Problem reported by Arto C. Nirkko
via Bruno Haible.
Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.1147
diff -u -p -r1.1147 autoconf.texi
--- doc/autoconf.texi 13 Apr 2007 07:52:58 -0000 1.1147
+++ doc/autoconf.texi 26 Apr 2007 19:50:42 -0000
@@ -12700,6 +12700,12 @@ $ @kbd{printf '\045'}
bash: printf: `%': missing format character
@end example
+Large outputs may cause trouble. On Solaris 8 through 10, for example,
+the command @samp{/bin/printf %010000x 123} dumps core. This particular
+bug should have little practical effect since Solaris shells' builtin
address@hidden commands do not have the bug, but it indicates an area
+that other @command{printf} implementations may have trouble in.
+
@item @command{read}
@c ------------------
- Re: portability note about 'printf',
Paul Eggert <=