Retrieve the command to which an alias expands.
(self, name)
| 250 | self.undefine_alias(name) |
| 251 | |
| 252 | def retrieve_alias(self, name): |
| 253 | """Retrieve the command to which an alias expands.""" |
| 254 | caller = self.get_alias(name) |
| 255 | if caller: |
| 256 | return caller.cmd |
| 257 | else: |
| 258 | raise ValueError('%s is not an alias' % name) |