Kaydet (Commit) 9c93a693 authored tarafından Guido van Rossum's avatar Guido van Rossum

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

(Jack)
üst 50cc04ee
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment