diff options
author | Fred Drake <fdrake@acm.org> | 1998-08-11 18:17:47 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-08-11 18:17:47 (GMT) |
commit | af06a0b4ee9877192f7d5d2033c03bfe384123cc (patch) | |
tree | a3134fb78a263924eb6bcf3bd48ac70cb52a7363 | |
parent | 211f22c1b150ede5fc49ef63ca62fabdbb85c811 (diff) | |
download | cpython-af06a0b4ee9877192f7d5d2033c03bfe384123cc.zip cpython-af06a0b4ee9877192f7d5d2033c03bfe384123cc.tar.gz cpython-af06a0b4ee9877192f7d5d2033c03bfe384123cc.tar.bz2 |
Use Perl's rename() function instead of system(); there's no need for two
additional processes for each name change!
-rwxr-xr-x | Doc/tools/node2label.pl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/tools/node2label.pl b/Doc/tools/node2label.pl index 5cc54d6..a59d68e 100755 --- a/Doc/tools/node2label.pl +++ b/Doc/tools/node2label.pl @@ -51,6 +51,5 @@ while (<>) { } foreach $oldname (keys %newnames) { -# or ln -s - system("mv $oldname $newnames{$oldname}"); + rename($oldname, $newnames{$oldname}); } |