Skip to content

[linux] Exec-failure diagnostics use 'rubash:' prefix and drop the '/usr/bin/bash: line N:' context GNU prints #231

Closed

Description

@caomengxuan666

Linux build (wt4/linuxrun), GNU 5.3.0 baseline.

Repro (target/wslrun/p0_execbit.sh):

printf '#!/bin/sh\necho ran\n' > /tmp/x/noexec.sh   # mode 644
/tmp/x/noexec.sh; echo rc=$?                        # 126 on both - status CORRECT

Expected (GNU stderr):

/mnt/.../p0_execbit.sh: line 8: /tmp/rubash_exec.QxIMIw/noexec.sh: Permission denied

Actual (rubash stderr):

rubash: /tmp/rubash_exec.16902-.../noexec.sh: Permission denied

Exit status (126) and stdout match; only the diagnostic text shape diverges: GNU prefixes with $0 + : line N: for script context (error format from errors.c command_error/id_shell), rubash prints a bare rubash: prefix without line attribution. Same shape for the non-executable PATH-candidate case (findcmd.c file_to_lose_on -> EACCES).

Artifacts: target/wslrun/results/p0_execbit.err.diff (2x2 lines).

Activity

  1. added
    bug
    on Sep 27, 2026
  2. caomengxuan666 commented on Sep 27, 2026

    @caomengxuan666
    MemberAuthor

    已修复并合入 master(commit b2e41b4e,lane wt4/linuxfix;GNU 引用与验证见提交信息:Linux 真机 WSL 双壳验证、24 套件平价 17→19)。感谢报告!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions