From abeaac66328f83d8962d6a5a4b9ce8712edbbaa5 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Fri, 25 Sep 2015 14:17:53 -0700 Subject: Teach builtin_string to recognize redirections, not just pipes Allows cases like `string split \n < file.txt` to work. Fixes 2422 --- src/fish_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fish_tests.cpp') 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(argv)); wcstring args; for (int i = 0; argv[i] != 0; i++) -- cgit v1.2.3