magicant / yash-rs

Reimplementation of yash, an extended POSIX shell
64 stars 3 forks source link

Activate the `ignore-eof` option #408

Closed magicant closed 1 week ago

magicant commented 2 weeks ago

It looks like we need to implement the ignore-eof option as an Input decorator.

The key point is that the option should only be effective for input from a terminal, and that we need to access the FD to test if the input is actually from the terminal.

It might be helpful to mention the decorator in the documentation comment for the interactive_read_eval_loop function (which is being implemented at the time of writing).

Unresolved questions: