Show More
@@ -225,7 +225,9 b' def aliasargs(fn, givenargs):' | |||||
225 | def replacer(m): |
|
225 | def replacer(m): | |
226 | num = int(m.group(1)) - 1 |
|
226 | num = int(m.group(1)) - 1 | |
227 | nums.append(num) |
|
227 | nums.append(num) | |
228 |
|
|
228 | if num < len(givenargs): | |
|
229 | return givenargs[num] | |||
|
230 | return '' | |||
229 | cmd = re.sub(r'\$(\d+|\$)', replacer, cmd) |
|
231 | cmd = re.sub(r'\$(\d+|\$)', replacer, cmd) | |
230 | givenargs = [x for i, x in enumerate(givenargs) |
|
232 | givenargs = [x for i, x in enumerate(givenargs) | |
231 | if i not in nums] |
|
233 | if i not in nums] |
General Comments 0
You need to be logged in to leave comments.
Login now