diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-07-10 20:30:54 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-07-10 20:30:54 -0700 |
commit | 4ee1cc3b374ccf2bba12353d459e189f65f37244 (patch) | |
tree | d2ab244f465436d4953a835896488e7072206010 /fish_tests.cpp | |
parent | 11dd904b6db661a2ff5c3cfc5b394ebaececd4f5 (diff) |
Make ^ only act as a redirect at the beginning of a token
Diffstat (limited to 'fish_tests.cpp')
-rw-r--r-- | fish_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fish_tests.cpp b/fish_tests.cpp index 0e8591d2..917da878 100644 --- a/fish_tests.cpp +++ b/fish_tests.cpp @@ -314,10 +314,10 @@ static void test_tok() { - const wchar_t *str = L"string <redirection 2>&1 'nested \"quoted\" '(string containing subshells ){and,brackets}$as[$well (as variable arrays)]"; + const wchar_t *str = L"string <redirection 2>&1 'nested \"quoted\" '(string containing subshells ){and,brackets}$as[$well (as variable arrays)] not_a_redirect^ ^ ^^is_a_redirect"; const int types[] = { - TOK_STRING, TOK_REDIRECT_IN, TOK_STRING, TOK_REDIRECT_FD, TOK_STRING, TOK_STRING, TOK_END + TOK_STRING, TOK_REDIRECT_IN, TOK_STRING, TOK_REDIRECT_FD, TOK_STRING, TOK_STRING, TOK_STRING, TOK_REDIRECT_OUT, TOK_REDIRECT_APPEND, TOK_STRING, TOK_END } ; size_t i; |