Hi All,
Consider this trivial wrapper:
wrapper()
{
command "$@"
}
Under an older bash like 4.4.20, when we suspend this with Ctrl-Z we get this:
$ wrapper cat
^Z
[1]+ Stopped cat
But under a newer bash, like 5.2.37:
$ wrapper cat
^Z
[1]+ Stopped command "$@"
The job control listing of the suspended "command" command shows the
unexpanded syntax now.
Maybe there was a good reason why this was done, but it's not working
in a situation like this.
Based on the job contro listing alone, the user has no idea what
actual program was interrupted, and has no access
to the context in which "$@" expands to "cat". The listing conveys
no useful information.
Cheers ...