We're building a nice repl module for interaction with the terminal. This is called interactive mode. From the sh man page:
If the −i option is present, or if there are no operands and the shell's standard input and standard error are attached to a terminal, the shell is considered to be interactive.
We should implement the -i and --interactive flags, and tweak the code to check the interactive mode in addition to just is_tty(&stdin).
We're building a nice
repl
module for interaction with the terminal. This is called interactive mode. From thesh
man page:We should implement the
-i
and--interactive
flags, and tweak the code to check the interactive mode in addition to justis_tty(&stdin)
.