-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Make stdin, stdout, and stderr into normal context variables and make a "stream handle" a built-in type. Then we can do something like:
let @stdout = (open -w "message.txt") {
println "Hello world!"
fclose @stdout
}
All sorts of fun and useful programming abilities open up that many shells can't handle because you can't hold a file descriptor in a variable. Of course, it can also mean that users can leak file handles...
Metadata
Metadata
Assignees
Labels
No labels