# # # add_dir "tests/empty_command_name" # # add_file "tests/empty_command_name/__driver__.lua" # content [431f2137b4f89450381281a8b0f909bdc4f9306f] # # patch "commands.cc" # from [a8252add69f2ed2ed88512fb21e23939deb45b46] # to [aa149b884c5b144e4244118c8d9c52ba92b37600] # ============================================================ --- commands.cc a8252add69f2ed2ed88512fb21e23939deb45b46 +++ commands.cc aa149b884c5b144e4244118c8d9c52ba92b37600 @@ -302,8 +302,6 @@ namespace commands { map< command_id, command * > matches; - I(!prefix().empty()); - for (children_set::const_iterator iter = children().begin(); iter != children().end(); iter++) { ============================================================ --- /dev/null +++ tests/empty_command_name/__driver__.lua 431f2137b4f89450381281a8b0f909bdc4f9306f @@ -0,0 +1,7 @@ +mtn_setup() + +check(mtn(''), 2, false, true) +check(qgrep("Usage: ", "stderr")) + +check(mtn('ls', ''), 1, false, true) +check(qgrep("is ambiguous", "stderr")) \ No newline at end of file