File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
test/API/commands/command/nested_alias Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -485,8 +485,9 @@ rather than using a positional placeholder:"
485
485
OptionArgVectorSP option_arg_vector_sp =
486
486
OptionArgVectorSP (new OptionArgVector);
487
487
488
- if (CommandObjectSP cmd_obj_sp =
489
- m_interpreter.GetCommandSPExact (cmd_obj.GetCommandName ())) {
488
+ const bool include_aliases = true ;
489
+ if (CommandObjectSP cmd_obj_sp = m_interpreter.GetCommandSPExact (
490
+ cmd_obj.GetCommandName (), include_aliases)) {
490
491
if (m_interpreter.AliasExists (alias_command) ||
491
492
m_interpreter.UserCommandExists (alias_command)) {
492
493
result.AppendWarningWithFormat (
Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ def cleanup():
47
47
self .runCmd ('command unalias rd' , check = False )
48
48
self .runCmd ('command unalias fo' , check = False )
49
49
self .runCmd ('command unalias foself' , check = False )
50
+ self .runCmd ('command unalias add_two' , check = False )
51
+ self .runCmd ('command unalias two' , check = False )
50
52
51
53
# Execute the cleanup function during test case tear down.
52
54
self .addTearDownHook (cleanup )
@@ -97,3 +99,8 @@ def cleanup():
97
99
'Show variables for the current' ,
98
100
'stack frame.' ],
99
101
matching = True )
102
+
103
+ # Check that aliases can be created for raw input commands.
104
+ self .expect ('command alias two expr -- 2' )
105
+ self .expect ('command alias add_two two +' )
106
+ self .expect ('add_two 3' , patterns = [' = 5$' ])
You can’t perform that action at this time.
0 commit comments