Skip to content

New parser request: typeset #678

@mattmc3

Description

@mattmc3

Nushell has an interesting command called scope which lets you print out aliases, commands, variables, etc in a structured format. That would be really handy to be able to do from Bash or Zsh, which would mean parsing typeset output. This one might be tricky because typeset isn't a command - it's a Bash/Zsh builtin and behaves differently depending on which shell you use. It also is tricky because it has flags like -p to print, or ones by type like -a for arrays and -A for associative arrays, -r for readonly, etc. I see that env is already supported for exported variables, but I didn't see anything for the rest and thought it would be worth at least opening up the issue for discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions