Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IO Redirection #26

Open
7 tasks
nixpulvis opened this issue Oct 16, 2018 · 3 comments
Open
7 tasks

IO Redirection #26

nixpulvis opened this issue Oct 16, 2018 · 3 comments
Labels
L1: enhancement New feature or request M: process Module: Process exec/fork and IO T: io Topic: Input and output related issues T: semantics Topic: Program evaluation issues or features
Milestone

Comments

@nixpulvis
Copy link
Owner

nixpulvis commented Oct 16, 2018

Support the standard POSIX redirection syntax

Input

  • [n]< - 2.7.1 Redirecting Input

Output

  • [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 Descriptor

Input / Output

  • [n]<> - 2.7.7 Open File Descriptors for Reading and Writing
@nixpulvis nixpulvis added L1: enhancement New feature or request T: grammar Topic: Formal or informal grammar, realtes to lexing / parsing T: semantics Topic: Program evaluation issues or features T: io Topic: Input and output related issues labels Oct 16, 2018
@nixpulvis nixpulvis added this to the POSIX milestone Oct 16, 2018
@nixpulvis
Copy link
Owner Author

nixpulvis commented Oct 16, 2018

Waiting on #22, and #4.

@nixpulvis nixpulvis mentioned this issue Oct 16, 2018
12 tasks
@nixpulvis
Copy link
Owner Author

Possibly needed pipe, pipe2 or something like dup(2).

@nixpulvis nixpulvis added M: process Module: Process exec/fork and IO and removed T: grammar Topic: Formal or informal grammar, realtes to lexing / parsing labels Aug 13, 2021
@nixpulvis
Copy link
Owner Author

Current implementation doesn't cleanup properly, so a command like echo 1 > foo.txt will leave further commands writing to foo.txt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L1: enhancement New feature or request M: process Module: Process exec/fork and IO T: io Topic: Input and output related issues T: semantics Topic: Program evaluation issues or features
Projects
None yet
Development

No branches or pull requests

1 participant