Skip to content

[bug] declare -p shows no integer attribute for HISTCMD / OPTIND #1492

Closed

Description

@caomengxuan666

Environment: rubash master 31e2638, GNU bash 5.3.20 as oracle, Linux x86_64.

Repro:
declare -p HISTCMD OPTIND

GNU bash 5.3.20: declare -i HISTCMD="..." / declare -i OPTIND="1"
rubash: declare -- HISTCMD="..." / declare -- OPTIND="1"

The values and behavior are correct; only the attribute bit is
missing (it also skews declare -p -i counts: 9 vs 1, though the
filter logic itself is right). The UID/EUID/PPID instances of this
class are filed as #1326; HISTCMD/OPTIND are not in that list.

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions