Skip to content

[bug] declare -p FUNCNAME 函数内不显示值(GNU 显示 ([0]="f" [1]="main") #183

Closed

Description

@caomengxuan666

复现(双侧 LF)

h() { declare -p FUNCNAME; }
h
  • GNU 5.3.0: declare -a FUNCNAME=([0]="h" [1]="main")
  • rubash: declare -a FUNCNAME(裸声明)

顶层两侧均为裸 declare -a FUNCNAME(att_invisible 语义,wt/m3-argv0 commit 1e4d5762 已修顶层/source 中 ${FUNCNAME[0]} 不可见);缺的是 declare 路径读函数内栈值。GNU 锚点:variables.c:1812 make_funcname_visible(execute_cmd.c:5257 置可见)。

产物:wt/m3-argv0 target/argv0-probe/fnprobe.sh。

Activity

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

    @caomengxuan666
    MemberAuthor

    已在 de86dd5/9b1eb043 修复并关闭(四个独立 commit + captain darwin pipe2 热修)。验收矩阵与双侧产物见各 commit message 及 worktree target/ 探针;套件切片 trap/comsub/redir/attr/func 均 0 diff;474/474 + 双交叉干净。

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