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

'typeset' and family accept invalid identifiers #28

Open
magicant opened this issue Sep 13, 2023 · 0 comments
Open

'typeset' and family accept invalid identifiers #28

magicant opened this issue Sep 13, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@magicant
Copy link
Owner

(This issue was originally filed at https://osdn.net/projects/yash/ticket/39386 by @McDutchie)

$ readonly a\ b=c
$ readonly a\ b=d
readonly: $a b is read-only
$ echo ${a b}
syntax error: invalid character ` ' in parameter expansion

If that is an invalid expansion, then 'readonly' should not have succeeded either.

$ export a\ b=c
$ env | grep ^a\ b=
a b=c

Allowing identifiers with spaces to be exported also does not seem like a good thing.

@magicant magicant added the bug Something isn't working label Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant