From: Guido van Rossum Date: Tue, 28 Apr 1998 16:03:03 +0000 (+0000) Subject: Put quotes around the filename, so spaces in filenames work. X-Git-Tag: v1.5.2a1~798 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c93a69335117c7e54c8962d3adc7e17a695f1b0;p=python Put quotes around the filename, so spaces in filenames work. (Jack) --- diff --git a/Lib/lib-old/packmail.py b/Lib/lib-old/packmail.py index 13b1bdcdea..4541c5160f 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 13b1bdcdea..4541c5160f 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