mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Remove the use of the "cat" program. This improves portability to non-Unix
platforms. This is part the response to SF patch #429611.
This commit is contained in:
parent
8a7b59e7b4
commit
9443dc31c1
1 changed files with 5 additions and 1 deletions
|
|
@ -418,11 +418,15 @@ sub do_cmd_textohtmlinfopage {
|
||||||
$the_version .= ", Release $PACKAGE_VERSION$RELEASE_INFO";
|
$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)
|
$_ = (($INFO == 1)
|
||||||
? join('',
|
? join('',
|
||||||
$close_all,
|
$close_all,
|
||||||
"<strong>$t_title</strong>$the_version\n",
|
"<strong>$t_title</strong>$the_version\n",
|
||||||
`cat $ABOUT_FILE`,
|
$about,
|
||||||
$open_all, $_)
|
$open_all, $_)
|
||||||
: join('', $close_all, $INFO,"\n", $open_all, $_));
|
: join('', $close_all, $INFO,"\n", $open_all, $_));
|
||||||
$_;
|
$_;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue