Retrieve the command to which an alias expands.
(self, name)
| 260 | self.undefine_alias(name) |
| 261 | |
| 262 | def retrieve_alias(self, name): |
| 263 | """Retrieve the command to which an alias expands.""" |
| 264 | caller = self.get_alias(name) |
| 265 | if caller: |
| 266 | return caller.cmd |
| 267 | else: |
| 268 | raise ValueError('%s is not an alias' % name) |