Put quotes around the filename, so spaces in filenames work.

(Jack)
This commit is contained in:
Guido van Rossum 1998-04-28 16:03:03 +00:00
parent 50cc04ee03
commit 9c93a69335
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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