mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 20:31:19 -03:00
Teach builtin_string to recognize redirections, not just pipes
Allows cases like `string split \n < file.txt` to work. Fixes 2422
This commit is contained in:
@@ -54,7 +54,7 @@ static void string_unknown_option(parser_t &parser, io_streams_t &streams, const
|
||||
/* We read from stdin if we are the second or later process in a pipeline. */
|
||||
static bool string_args_from_stdin(const io_streams_t &streams)
|
||||
{
|
||||
return ! streams.is_first_process_in_pipeline;
|
||||
return streams.stdin_is_directly_redirected;
|
||||
}
|
||||
|
||||
static const wchar_t *string_get_arg_stdin(wcstring *storage, const io_streams_t &streams)
|
||||
|
||||
Reference in New Issue
Block a user