The command alias
lists the active aliases. But it does this in a way that is different from how to set the alias:
% alias foo 'bar \!*'
% alias baz quux xyzzy
% alias corge 'grault \
garply (quux xyzzy)'
% alias
baz (quux xyzzy)
corge grault
garply (quux xyzzy)
foo bar !*
How can I convert the existing aliases to the commands that would build the alias (sort of the command alias
but in reverse)?