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

umask: symbolic mode cannot contain empty set #10177

Closed
adamjstewart opened this issue Dec 31, 2023 · 1 comment
Closed

umask: symbolic mode cannot contain empty set #10177

adamjstewart opened this issue Dec 31, 2023 · 1 comment
Labels
bug Something that's not working as intended
Milestone

Comments

@adamjstewart
Copy link
Contributor

The following issue occurs on fish 3.6.4 and can be reproduced as follows. The following works fine:

> umask 0007
> umask
0007
> umask -S
u=rwx,g=rwx,o=

However, the symbolic mode equivalent does not work, regardless of order:

> umask u=rwx,g=rwx,o=
set: given 1 indexes but 0 values
> umask o=,u=rwx,g=rwx
set: given 1 indexes but 0 values

This works fine in bash, so I assume it should also work in fish. I have no third-party customizations. Note that the following is not equivalent:

> umask u=rwx,g=rwx

This does not override the value of o.

@faho faho added the bug Something that's not working as intended label Dec 31, 2023
@faho faho added this to the fish 3.7.0 milestone Dec 31, 2023
@faho faho closed this as completed in b895cf4 Dec 31, 2023
faho added a commit that referenced this issue Dec 31, 2023
Simple return/echo confusion.

Fixes #10177

(cherry picked from commit b895cf4)
@adamjstewart
Copy link
Contributor Author

Thanks for the quick fix @faho! Happy New Year!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that's not working as intended
Projects
None yet
Development

No branches or pull requests

2 participants