-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
Description
Describe the bug
Currently these 2 commands are equivalent:
nix run nixpkgs#eza -- arg1 arg2nix run -- nixpkgs#eza arg1 arg2
In the 2nd case - when trying to skip installable (to use the default .#.) and supplying args to the nested command after -- - nix run expects the first argument after the -- to be an "installable". The problem is that it's inconsistent compared to when installable is provided before --.
Steps To Reproduce
- Run
nix run -- arg1 arg2.
Expected behavior
It should run app/package at .#., just like nix run does. Everything else after -- should be passed to the command. But the arg1 is not passed as arg, but an installable.
Metadata
nix-env (Nix) 2.31.1
Additional context
May be resolved / made irrelevant by implementing #6933 (comment), provided that we decide to completely remove -- from nix run - see the comment #6933 (comment).
Checklist
- checked latest Nix manual (source)
- checked open bug issues and pull requests for possible duplicates
Add 👍 to issues you find important.
roberth, Frontear, ironm00n, isabelroses, tsandrini and 1 more
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Triage