Open nixpulvis opened 5 years ago
Support the standard POSIX redirection syntax
[n]<
[n]>
[n]>|
[n]>>
[n]<<word
[n]<<word-
[n]<&
[n]>&
[n]<>
Waiting on #22, and #4.
Possibly needed pipe, pipe2 or something like dup(2).
pipe
pipe2
dup(2)
Current implementation doesn't cleanup properly, so a command like echo 1 > foo.txt will leave further commands writing to foo.txt.
echo 1 > foo.txt
foo.txt
Support the standard POSIX redirection syntax
Input
[n]<
- 2.7.1 Redirecting InputOutput
[n]>
,[n]>|
- 2.7.2 Redirecting Output[n]>>
- 2.7.3 Appending Redirected Output[n]<<word
,[n]<<word-
- 2.7.4 Here-Document[n]<&
- 2.7.5 Duplicating an Input File Descriptor[n]>&
- 2.7.6 Duplicating an Output File DescriptorInput / Output
[n]<>
- 2.7.7 Open File Descriptors for Reading and Writing