Building on #54, we should add support for "alias" variables, as per RISC OS, to allow for commands to be aliased
Setting an alias is done like so:
*set Alias$xxx yyy
which would mean that when the command xxx is entered then yyy will be performed
aliasing is essentially a simple string substitution - so arguments can be set by default against an alias, for instance:
*set Alias$longdir dir -l
would set up a longdir command, which could be used as just calling longdir or longdir filepattern etc.
We should use this mechanism to provide for the inbuilt aliases that we already have, rather than the current mechanism of just having duplicate entries into the MOS command table
Building on #54, we should add support for "alias" variables, as per RISC OS, to allow for commands to be aliased
Setting an alias is done like so:
*set Alias$xxx yyy
which would mean that when the commandxxx
is entered thenyyy
will be performedaliasing is essentially a simple string substitution - so arguments can be set by default against an alias, for instance:
*set Alias$longdir dir -l
would set up alongdir
command, which could be used as just callinglongdir
orlongdir filepattern
etc.We should use this mechanism to provide for the inbuilt aliases that we already have, rather than the current mechanism of just having duplicate entries into the MOS command table