From 675deea6ab624bffcedb80b2c8dadde59351f7e3 2007-08-14 18:19:49 From: vivainio Date: 2007-08-14 18:19:49 Subject: [PATCH] update prefilter tests --- diff --git a/test/test_prefilter.py b/test/test_prefilter.py index 4d7aa62..fce821c 100644 --- a/test/test_prefilter.py +++ b/test/test_prefilter.py @@ -157,14 +157,10 @@ esc_handler_tests = [ # Trailing qmark combos. Odd special cases abound - # The key is: we don't want the trailing ? to trigger help if it's a - # part of a shell glob (like, e.g. '!ls file.?'). Instead, we want the - # shell handler to be called. Due to subtleties of the input string - # parsing, however, we only call the shell handler if the trailing ? is - # part of something whitespace-separated from the !cmd. See examples. - ( '!thing?', handle_help), + # ! always takes priority! + ( '!thing?', handle_shell_escape), ( '!thing arg?', handle_shell_escape), - ( '!!thing?', handle_help), + ( '!!thing?', handle_shell_escape), ( '!!thing arg?', handle_shell_escape), # For all other leading esc chars, we always trigger help