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
(b) main.rs cli_shell_flag_name 接受 -m;新增 apply_startup_job_control 移植 jobs.c:4869 change_flag('m', job_control ? '-' : '+'):非交互且 stderr 非 tty 时按 GNU 打两条诊断(cannot set terminal process group / no job control in this shell)并从 $- 摘掉 m;交互则保留/置上 m。
Activity
caomengxuan666 commentedon Sep 26, 2026
已在 wt/c-diag 分支修复(commit f4f6cf58,基线 8f89767):
prompt_expansion.rs shell_option_flags表在 k/n 之间加('m', "monitor")(flags.c:177 表位);set -m; echo $-→hmBc。main.rs cli_shell_flag_name接受-m;新增apply_startup_job_control移植 jobs.c:4869change_flag('m', job_control ? '-' : '+'):非交互且 stderr 非 tty 时按 GNU 打两条诊断(cannot set terminal process group / no job control in this shell)并从 $- 摘掉 m;交互则保留/置上 m。prepare_interactive_history从“仅无参回落”移入全部四条 run_*_with_init 派发路径(-c / 脚本 / -s / 无参),且移到 init file 之后(对齐 shell.c:799-811 次序),-i -c / -i file / -i -s 三路径 $- 均含 H。八模式矩阵双侧逐字母一致(target/issue-suites/results/151/matrix151.sh、m-gnu.txt、m-rub.txt):m1 hBc / m2 himBHc / m3 hB / m4 himBH / m5 hBs / m6 himBHs / m7 两诊断+hBc / m8 hmBc。m7 stderr 与 GNU 一致(pid 与 shell 路径前缀归一化后)。注意:m7 在 rubash 父进程管道下子进程 stderr 会被父进程延后转发(顺序倒置)——直接调用顺序正确;这是既有的子进程 stderr 转发机制行为,与本修复无关(另见 #164)。
四门:build 0 警告 / lib 453 全绿 / cargo check --tests 0 警告 / 两个文件 rustfmt 干净。
caomengxuan666 commentedon Sep 26, 2026
已在 3386013 落地(f4f6cf58):$- 表加 ('m', monitor)(flags.c:177 位序 k/n 之间);cli_shell_flag_name 接受 -m + apply_startup_job_control 移植 jobs.c:4869 change_flag 语义(非交互且 stderr 非 tty → 打 GNU 两条诊断 jobs.c:4841/4853/:4856 并摘 m;交互 → 置 m);prepare_interactive_history 移入 -c/脚本/-s/无参四路径(shell.c:799-811 次序)→ H 三路径齐。八模式矩阵双侧逐字母全同(产物 results/151/)。474/474 + 双交叉干净。