Skip to content

"bad substitution" error on darwin #71625

@Ptival

Description

@Ptival

Describe the bug
Since this commit:
bbc5b22
Whenever I run commands like:
nix-shell -p hello
I get the following error:

/nix/store/v94xrmhkljhb44v2shcpv74gxg1ii1f1-cctools-binutils-darwin-wrapper/nix-support/setup-hook: line 140: ${role_pre}${cmd^^}=${cmd}: bad substitution

Additional context
My default shell is zsh, which has been the cause of some issues at times.

Metadata

 - 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(root): `""`
 - channels(val): `"nixpkgs-20.03pre197510.4b0508a5853"`
 - nixpkgs: `/Users/val/.nix-defexpr/channels/nixpkgs`

Paging @xzfc in particular. Let me know how I can help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: darwinRunning or building packages on Darwin
    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