equal
deleted
inserted
replaced
400 "of %i variable in alias '%s' definition." |
400 "of %i variable in alias '%s' definition." |
401 % (int(m.groups()[0]), self.name)) |
401 % (int(m.groups()[0]), self.name)) |
402 return '' |
402 return '' |
403 cmd = re.sub(r'\$(\d+|\$)', _checkvar, self.definition[1:]) |
403 cmd = re.sub(r'\$(\d+|\$)', _checkvar, self.definition[1:]) |
404 cmd = aliasinterpolate(self.name, args, cmd) |
404 cmd = aliasinterpolate(self.name, args, cmd) |
405 return util.system(cmd, environ=env, out=ui.fout) |
405 return ui.system(cmd, environ=env) |
406 self.fn = fn |
406 self.fn = fn |
407 return |
407 return |
408 |
408 |
409 try: |
409 try: |
410 args = shlex.split(self.definition) |
410 args = shlex.split(self.definition) |