command-not-found: pass all of argv to helper

authored by

Arda Xi and committed by
Nathan Zadoks
e60c4995 efd9562d

+2 -2
+2 -2
nixos/modules/programs/command-not-found/command-not-found.nix
··· 30 30 local p=/run/current-system/sw/bin/command-not-found 31 31 if [ -x $p -a -f /nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite ]; then 32 32 # Run the helper program. 33 - $p "$1" 33 + $p "$@" 34 34 # Retry the command if we just installed it. 35 35 if [ $? = 126 ]; then 36 36 "$@" ··· 51 51 local p=/run/current-system/sw/bin/command-not-found 52 52 if [ -x $p -a -f /nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite ]; then 53 53 # Run the helper program. 54 - $p "$1" 54 + $p "$@" 55 55 56 56 # Retry the command if we just installed it. 57 57 if [ $? = 126 ]; then