A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/chisui/zsh-nix-shell/issues/14 below:

bad substitution · Issue #14 · chisui/zsh-nix-shell · GitHub

Issue description

I'm getting the following error when trying to run nix-shell with zsh-nix-shell enabled:

/nix/store/6wvhspx58ak4yy3limaf1fb32792l187-cctools-binutils-darwin-wrapper-927.0.2/nix-support/setup-hook: line 138: ${role_pre}${cmd^^}=${cmd}: bad substitution

If I comment zsh-nix-shell out - it works fine. I thought it might be related to NixOS/nixpkgs#71625, but I have same old default bash-3.2 from Mojave and didn't have to update it with brew.

I used plain installation (I use prezto instead of Oh-My-ZSH).

Steps to reproduce

I have a following default.nix file:

let pkgs = import <nixpkgs> {};
in
pkgs.stdenv.mkDerivation rec {
  name = "rust";
  buildInputs = [ pkgs.rustup ];
}
Technical details
$ command nix-shell -p nix-info --run "nix-info -m"
...
 - system: `"x86_64-darwin"`
 - host os: `Darwin 18.7.0, macOS 10.14.6`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.3.1`
 - channels(antonparkhomenko): `"nixpkgs-20.03pre205792.fb1bc1b891f"`
 - nixpkgs: `/Users/antonparkhomenko/.nix-defexpr/channels/nixpkgs`
$ zsh --version  # installed by nix
zsh 5.7.1 (x86_64-apple-darwin17.7.0)
$ /bin/zsh --version
zsh 5.3 (x86_64-apple-darwin18.0)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4