B
bill
I have a script that at one point fires up $EDITOR (which can be
assumed to be Emacs for the purpose of this question) and gets some
deathless prose from the user. I have no idea how to write a test
script that could automate this interaction. Any suggestions would
be much appreciated.
By the way, what's the best way to write a command-line script so
that it is easily testable with test scripts? As I have it written
now, my test script would have to mess around with pipes, but I
imagine that I could conceivably (maybe) do something with require
and -t ?
-bill
assumed to be Emacs for the purpose of this question) and gets some
deathless prose from the user. I have no idea how to write a test
script that could automate this interaction. Any suggestions would
be much appreciated.
By the way, what's the best way to write a command-line script so
that it is easily testable with test scripts? As I have it written
now, my test script would have to mess around with pipes, but I
imagine that I could conceivably (maybe) do something with require
and -t ?
-bill