summary refs log tree commit diff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorArda Xi <arda@ardaxi.com>2015-12-28 14:49:53 +0100
committerNathan Zadoks <nathan@nathan7.eu>2015-12-28 15:09:48 +0100
commite60c4995fdea8ab86115149f89fca84275480fb7 (patch)
tree603f0606d8121602e56a15c6dcaa75addbf9be82 /nixos/modules/programs
parentefd9562df02e70d5eb97c9fe11238ae8135bbf4b (diff)
downloadnixlib-e60c4995fdea8ab86115149f89fca84275480fb7.tar
nixlib-e60c4995fdea8ab86115149f89fca84275480fb7.tar.gz
nixlib-e60c4995fdea8ab86115149f89fca84275480fb7.tar.bz2
nixlib-e60c4995fdea8ab86115149f89fca84275480fb7.tar.lz
nixlib-e60c4995fdea8ab86115149f89fca84275480fb7.tar.xz
nixlib-e60c4995fdea8ab86115149f89fca84275480fb7.tar.zst
nixlib-e60c4995fdea8ab86115149f89fca84275480fb7.zip
command-not-found: pass all of argv to helper
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r--nixos/modules/programs/command-not-found/command-not-found.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/programs/command-not-found/command-not-found.nix b/nixos/modules/programs/command-not-found/command-not-found.nix
index 9d3f61f5ff9b..9741aa7ca539 100644
--- a/nixos/modules/programs/command-not-found/command-not-found.nix
+++ b/nixos/modules/programs/command-not-found/command-not-found.nix
@@ -30,7 +30,7 @@ in
         local p=/run/current-system/sw/bin/command-not-found
         if [ -x $p -a -f /nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite ]; then
           # Run the helper program.
-          $p "$1"
+          $p "$@"
           # Retry the command if we just installed it.
           if [ $? = 126 ]; then
             "$@"
@@ -51,7 +51,7 @@ in
         local p=/run/current-system/sw/bin/command-not-found
         if [ -x $p -a -f /nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite ]; then
           # Run the helper program.
-          $p "$1"
+          $p "$@"
 
           # Retry the command if we just installed it.
           if [ $? = 126 ]; then