-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
Oil syntax for exec {fd}<file.txt #673
Comments
Maybe do something like perl: https://perldoc.perl.org/functions/open
|
If we wanted to be clever we could take 3 arguments at a time:
Looks kind of ugly. This is the same:
I don't really like the quoted
|
related to #841 |
I think the main use case for this is the #863 fopen builtin, we can get by without it for awhile ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In other words, expose something like
fd_state.Open()
. You can't use plainopen()
because of the colliding file descriptor problem, discussed on PR #672 .It should be scoped like shell's redirect and Python's
with
. So that means it involves Oil Blocks #631 .I tried to use this syntax here:
https://github.com/oilshell/oil/blob/master/test/spec-runner.sh#L93
The text was updated successfully, but these errors were encountered: