diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2015-09-25 14:17:53 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2015-09-25 14:19:15 -0700 |
commit | abeaac66328f83d8962d6a5a4b9ce8712edbbaa5 (patch) | |
tree | 72ee133f395935a0ffe977f6a6f189dfb5314628 /src/fish_tests.cpp | |
parent | d591cebf4463e42569400bbcbaba5e16dcad734b (diff) |
Teach builtin_string to recognize redirections, not just pipes
Allows cases like `string split \n < file.txt` to work.
Fixes 2422
Diffstat (limited to 'src/fish_tests.cpp')
-rw-r--r-- | src/fish_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp index 1b71411c..889dfbb8 100644 --- a/src/fish_tests.cpp +++ b/src/fish_tests.cpp @@ -4024,7 +4024,7 @@ static void run_one_string_test(const wchar_t **argv, int expected_rc, const wch { parser_t parser(PARSER_TYPE_GENERAL, true); io_streams_t streams; - streams.is_first_process_in_pipeline = true; // read from argv instead of stdin + streams.stdin_is_directly_redirected = false; // read from argv instead of stdin int rc = builtin_string(parser, streams, const_cast<wchar_t**>(argv)); wcstring args; for (int i = 0; argv[i] != 0; i++) |