You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
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.
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
command nix-shell -p nix-info --run "nix-info -m"
"x86_64-linux"
Linux 6.3.2, NixOS, 23.05 (Stoat), 23.05.20230517.e6e3899
yes
yes
nix-env (Nix) 2.15.0
"nixos"
/nix/var/nix/profiles/per-user/root/channels/nixos
zsh --version
zsh 5.9 (x86_64-pc-linux-gnu)
The text was updated successfully, but these errors were encountered: