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