Skip to content

unbound XDG_DATA_DIRS reference #9414

@NedAnd1

Description

@NedAnd1

Platform

  • Linux: Fedora
  • macOS
  • WSL

Additional information

@iFreilicht @edolstra Due to PR #9312 and its check for "$XDG_DATA_DIRS" instead of "${XDG_DATA_DIRS-}" the nix-profile script breaks in our bash environments with the error "unbound variable" for the latest nix release of 2.19.0

Output

Output
+ XDG_STATE_HOME=/root/.local/state
+ source /root/.nix-profile/etc/profile.d/nix.sh
++ '[' -n /root ']'
++ '[' -n root ']'
++ NIX_LINK=/root/.nix-profile
++ '[' -n /root/.local/state ']'
++ NIX_LINK_NEW=/root/.local/state/nix/profile
++ '[' -e /root/.local/state/nix/profile ']'
++ '[' -t 2 ']'
++ export 'NIX_PROFILES=/nix/var/nix/profiles/default /root/.nix-profile'
++ NIX_PROFILES='/nix/var/nix/profiles/default /root/.nix-profile'
/root/.nix-profile/etc/profile.d/nix.sh: line 36: XDG_DATA_DIRS: unbound variable

Priorities

Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions