sleyzerzon / soar

Automatically exported from code.google.com/p/soar
1 stars 0 forks source link

alias did not work for defining old alias ps for print --stack #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.here's a trace:

# using soar debugger 9.3.1 on mac OS 10.6.6
unalias ps
ps
Error: No such command: ps

alias ps p --stack

ps
Error: No such command: ps

What is the expected output? What do you see instead?
I expect to see the alias work.  I did some checking:
alias ps
alias p
p=print  [the return for the alias p]
alias bob
alias bob p
alias bob
 [looks like alias is not making aliases]

What version of the product are you using? On what operating system?

as noted above, soardebugger 9.3.1 on mac os 10.6.6

Please provide any additional information below.

Original issue reported on code.google.com by frank.e....@gmail.com on 11 Sep 2011 at 8:09

GoogleCodeExporter commented 9 years ago
I just found out that during the command parser rewrite, the syntax for alias 
got switched around: the last argument is the aliased name, and all arguments 
before it comprise the command to run. So for example, "alias print --stack ps" 
works. This is the opposite of what is documented and seems awkward to me. We 
will modify the implementation to adhere to the current documentation for the 
next release.

Original comment by joseph...@gmail.com on 13 Sep 2011 at 7:12

GoogleCodeExporter commented 9 years ago

Original comment by joseph...@gmail.com on 13 Sep 2011 at 7:13

GoogleCodeExporter commented 9 years ago

Original comment by joseph...@gmail.com on 13 Sep 2011 at 8:01