mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08:00
Put quotes around the filename, so spaces in filenames work.
(Jack)
This commit is contained in:
parent
50cc04ee03
commit
9c93a69335
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user