From 9c93a69335117c7e54c8962d3adc7e17a695f1b0 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 28 Apr 1998 16:03:03 +0000 Subject: Put quotes around the filename, so spaces in filenames work. (Jack) --- Lib/lib-old/packmail.py | 2 +- Lib/packmail.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/lib-old/packmail.py b/Lib/lib-old/packmail.py index 13b1bdc..4541c51 100644 --- a/Lib/lib-old/packmail.py +++ b/Lib/lib-old/packmail.py @@ -21,7 +21,7 @@ def help(): def pack(outfp, file, name): fp = open(file, 'r') outfp.write('echo ' + name + '\n') - outfp.write('sed "s/^X//" >' + name + ' <<"!"\n') + outfp.write('sed "s/^X//" >"' + name + '" <<"!"\n') while 1: line = fp.readline() if not line: break diff --git a/Lib/packmail.py b/Lib/packmail.py index 13b1bdc..4541c51 100644 --- a/Lib/packmail.py +++ b/Lib/packmail.py @@ -21,7 +21,7 @@ def help(): def pack(outfp, file, name): fp = open(file, 'r') outfp.write('echo ' + name + '\n') - outfp.write('sed "s/^X//" >' + name + ' <<"!"\n') + outfp.write('sed "s/^X//" >"' + name + '" <<"!"\n') while 1: line = fp.readline() if not line: break -- cgit v0.12