On 2/13/23 2:43 PM, Koichi Murase wrote:
I guess just the support for ksh's ${ list; } [1] would make everything simple and clear. One can simply call ${ jobs; }, ${ trap -p; }, etc. without thinking about subshells.I don't see what difference that'd make. A subshell inherits its parent's job list, and `$(trap ...)' expands to what `trap ...' would output if it were run in the parent shell; these are well specified in the standard.
I think `builtin' should be fixed and the rest left alone.