From 9443dc31c1f0fc7a5eb352afa7e6f86f7ae2bf80 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 10 Aug 2001 20:12:09 +0000 Subject: Remove the use of the "cat" program. This improves portability to non-Unix platforms. This is part the response to SF patch #429611. --- Doc/perl/l2hinit.perl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Doc/perl/l2hinit.perl b/Doc/perl/l2hinit.perl index 58ed604..cd66a03 100644 --- a/Doc/perl/l2hinit.perl +++ b/Doc/perl/l2hinit.perl @@ -418,11 +418,15 @@ sub do_cmd_textohtmlinfopage { $the_version .= ", Release $PACKAGE_VERSION$RELEASE_INFO"; } } + my $about; + open(ABOUT, "<$ABOUT_FILE") || die "\n$!\n"; + sysread(ABOUT, $about, 1024*1024); + close(ABOUT); $_ = (($INFO == 1) ? join('', $close_all, "$t_title$the_version\n", - `cat $ABOUT_FILE`, + $about, $open_all, $_) : join('', $close_all, $INFO,"\n", $open_all, $_)); $_; -- cgit v0.12