Skip to content

umask: symbolic mode cannot contain empty set #10177

Closed

Description

@adamjstewart

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.

Activity

  1. added
    bugSomething that's not working as intended
    on Dec 31, 2023
  2. added this to the fish 3.7.0 milestone on Dec 31, 2023
  3. added a commit that references this issue on Dec 31, 2023
    3b9b841
  4. adamjstewart commented on Jan 1, 2024

    @adamjstewart
    ContributorAuthor

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

  5. added a commit that references this issue on Jan 27, 2024
    b895cf4
  6. locked as resolved and limited conversation to collaborators on Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intended

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions