You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a series of tests that I keep in my head and run manually when testing job control. I can't use the existing testing framework for these because it's incapable of interacting with child processes in any of the modes (C++, fish script, or expect).
As the simplest example, we need a scripted way to do this in an interactive fish session:
Start foo | less
Send ^Z to the foreground job
Run a fish command and error if we hang here
Any suggestions on how this might be accomplished? The Tcl/expect scripts can't do the first bolded step, or at least, I can't figure out how to get them to do it. Input seems to always be directed either to the (local) console or to fish itself, but does not reach child procs.
The text was updated successfully, but these errors were encountered:
@zanchey good suggestion, but I don't think so since that would require some form of backgrounding in order to get the fish instance to return $last_pid and to send the signal while less is in the foreground. Additionally, for testing the most basic assumptions of job control depending on complex bg/fg behavior and executing multiple jobs at once is probably not the way to go.
In all cases, that was just an example of something I needed to do. There are cases where it's necessary to do other things, such as verify that stdin is correctly connected to the right job, etc.