lix mangles parameters after subcommand #1145

Open
opened 2026-03-01 12:28:19 +00:00 by atemu · 0 comments

Steps To Reproduce

lix-repro--bug in your PATH:

#!/usr/bin/env bash

echo "$@"
[atemu@THESEUS ~]$ lix repro--bug foo -- bar
foo bar
[atemu@THESEUS ~]$ lix -- repro--bug foo -- bar
foo -- bar
[atemu@THESEUS ~]$ lix repro--bug -vvvv foo -- bar
-v -v -v -v foo bar
[atemu@THESEUS ~]$ lix -- repro--bug -vvvv foo -- bar
-vvvv foo -- bar

Expected behavior

lix should not touch any args after the subcommand

nix --version output

nix (Lix, like Nix) 2.94.0
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux, x86_64-v4-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /Users/atemu/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/Users/atemu/.nix-profile/etc/xdg/nix/nix.conf:/Users/atemu/.local/state/nix/profile/etc/xdg/nix/nix.conf:/Users/atemu/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/atemu/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/4r4jw96ddf9bdv4hwv3mqka3djsnnhg7-lix-2.94.0/share

Additional context

Workaround: alias lix="lix --"

## Steps To Reproduce `lix-repro--bug` in your PATH: ```bash #!/usr/bin/env bash echo "$@" ``` ``` [atemu@THESEUS ~]$ lix repro--bug foo -- bar foo bar [atemu@THESEUS ~]$ lix -- repro--bug foo -- bar foo -- bar [atemu@THESEUS ~]$ lix repro--bug -vvvv foo -- bar -v -v -v -v foo bar [atemu@THESEUS ~]$ lix -- repro--bug -vvvv foo -- bar -vvvv foo -- bar ``` ## Expected behavior `lix` should not touch any args after the subcommand ## `nix --version` output ``` nix (Lix, like Nix) 2.94.0 System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux, x86_64-v4-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /Users/atemu/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/Users/atemu/.nix-profile/etc/xdg/nix/nix.conf:/Users/atemu/.local/state/nix/profile/etc/xdg/nix/nix.conf:/Users/atemu/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/atemu/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/4r4jw96ddf9bdv4hwv3mqka3djsnnhg7-lix-2.94.0/share ``` ## Additional context Workaround: `alias lix="lix --"`
raito added this to the 2.96 milestone 2026-03-03 02:43:09 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lix-project/lix#1145
No description provided.