Fabian Homborg 709e91c1e6 builtin test: Let -t work for the standard streams
Since builtins don't actually have the streams connected, but instead
read input via the io_streams_t objects, this would just always say
what *fish's* fds were.

Instead, pass along some of the stream data to check those
specifically - nobody cares that `test`s fd 0 *technically* is stdin.
What they want to know is that, if they used another program in that
place, it would connect to the TTY.

This is pretty hacky - I abused static variables for this, but
since it's two bools and an int it's probably okay.

See #1228.

Fixes #4766.
2020-09-16 21:02:59 +02:00
..
2020-06-08 17:33:04 +02:00
2020-06-08 17:33:04 +02:00
2020-08-08 16:35:08 +02:00
2020-06-17 15:55:31 +02:00
2020-06-08 22:57:46 +02:00
2020-06-24 20:43:56 +02:00
2020-08-22 19:15:54 -07:00
2020-06-13 16:18:17 +02:00
2020-06-13 15:21:40 +02:00
2020-09-04 16:29:53 +02:00