* doc/autoconf.texi (File Descriptors): Dash 0.5.5 truncates on
<>; at least this was fixed in dash 0.5.6.
Signed-off-by: Eric Blake <eblake@redhat.com>
+2010-10-20 Eric Blake <eblake@redhat.com>
+
+ docs: document dash bug in <>
+ * doc/autoconf.texi (File Descriptors): Dash 0.5.5 truncates on
+ <>; at least this was fixed in dash 0.5.6.
+
2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
tests: avoid AC_CACHE_CHECK test failure with dash.
bash: echo: write error: Communication error on send
@end example
+@noindent
+Furthermore, versions of @command{dash} before 0.5.6 mistakenly truncate
+regular files when using @samp{<>}:
+
+@example
+$ @kbd{echo a > file}
+$ @kbd{bash -c ': 1<>file'; cat file}
+a
+$ @kbd{dash -c ': 1<>file'; cat file}
+$ rm a
+@end example
+
When catering to old systems, don't redirect the same file descriptor
several times, as you are doomed to failure under Ultrix.