Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bogus typeset -p output for compounds with disciplines #729

Open
stephane-chazelas opened this issue Mar 11, 2024 · 0 comments
Open

bogus typeset -p output for compounds with disciplines #729

stephane-chazelas opened this issue Mar 11, 2024 · 0 comments
Labels
bug Something is not working

Comments

@stephane-chazelas
Copy link

$ echo "${.sh.version}"
Version AJM 93u+m/1.1.0-alpha+9a48c61e 2024-03-07
$ c=(a=b; function get { :; } )
$ typeset -p c
typeset -C c=
$ d=(a=b)
$ function d.get { :; }
$ typeset -p d
typeset -C d=()

See also:

$ a=(typeset -A a=([a]=b); function get { typeset -p a; })
$ : $a
typeset -C a=
$ typeset -p a
typeset -x a=typeset -x a=

Which looks pretty random.

@McDutchie McDutchie added the bug Something is not working label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working
Projects
None yet
Development

No branches or pull requests

2 participants