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

nix-shell:9: key: attempt to set associative array to scalar #37

Closed
Robotix-00 opened this issue Jun 17, 2023 · 1 comment
Closed

nix-shell:9: key: attempt to set associative array to scalar #37

Robotix-00 opened this issue Jun 17, 2023 · 1 comment

Comments

@Robotix-00
Copy link

When running nix-shell in zsh, I am greeted by the aboth mentioned error nix-shell:9: key: attempt to set associative array to scalar. This doesn't appear to happen when prefixing the nix-shell call with "command".
I am using the newest versions of zsh-nix-shell (v0.7.0) and zsh (5.9).
Is there a fix other than putting "command" in front of every nix-shell call?

Technical details

  1. command nix-shell -p nix-info --run "nix-info -m"
  • system: "x86_64-linux"
  • host os: Linux 6.3.2, NixOS, 23.05 (Stoat), 23.05.20230517.e6e3899
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.15.0
  • channels(root): "nixos"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
  1. zsh --version
    zsh 5.9 (x86_64-pc-linux-gnu)
@Robotix-00
Copy link
Author

I had the set option "ksharrays" in my zshrc which causes arrays to start at index 0 instead of the default 1.
Unsetting this option and everything works flawless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant