[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Cosmetic issue in job control display of suspsended "command" command.
From: |
Kaz Kylheku |
Subject: |
Cosmetic issue in job control display of suspsended "command" command. |
Date: |
Mon, 03 Mar 2025 23:17:39 -0800 |
User-agent: |
Roundcube Webmail/1.4.15 |
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 ...
- Cosmetic issue in job control display of suspsended "command" command.,
Kaz Kylheku <=