tags 164495 patch
thanks
Hello,
Based on Kurt B. Kaiser, I'm attaching a patch.
The problem is that the last line of the directory file never ends by a
new line and thus is not displayed by info.
The problem is not specific to the coreutils info file. It is caused by
install-info, which keeps the line in the '@newwork' array, and later
joins the line with 'join("\n",@newwork)', which doesn't add an ending
newline.
Kind Regards,
--
Nekral
Index: scripts/install-info.pl
===================================================================
--- scripts/install-info.pl (révision 256)
+++ scripts/install-info.pl (copie de travail)
@@ -445,7 +445,7 @@
if (!$nowrite) {
open(NEW,"> $infodir/dir.new") || &ulquit("create $infodir/dir.new: $!");
- print(NEW @head,join("\n",@newwork)) || &ulquit("write $infodir/dir.new:
$!");
+ print(NEW @head,join("\n",@newwork),"\n") || &ulquit("write
$infodir/dir.new: $!");
close(NEW) || &ulquit("close $infodir/dir.new: $!");
unlink("$infodir/dir.old");