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

Add shell redirections #262

Merged
merged 11 commits into from
Nov 5, 2021
Merged

Add shell redirections #262

merged 11 commits into from
Nov 5, 2021

Conversation

vinc
Copy link
Owner

@vinc vinc commented Oct 31, 2021

The initial plan for MOROS Shell was to emulate redirections with pipes and read or write commands like print hello -> write /tmp/test that can be shortened to p hello > w /tmp/test where > is the equivalent of | for Unix shells.

Pipes are not yet implemented but with a DUP syscall and the file handle table it's easy to implement redirections like print hello => /tmp/test where => is the same than > for Unix shells.

@vinc
Copy link
Owner Author

vinc commented Oct 31, 2021

For now only print hello => /tmp/test or print hello 1=> /tmp/test works while read <= /tmp/test for example wouldn't because reading from stdin is not implemented for most tools.

@vinc vinc marked this pull request as ready for review November 5, 2021 07:55
@vinc vinc merged commit d053f17 into trunk Nov 5, 2021
@vinc vinc deleted the feature/shell-redirections branch November 5, 2021 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant