fix(command-not-found): pass arguments correctly in NixOS (#10381)

pull/10391/head
amnore 2021-11-03 20:17:23 +08:00 committed by GitHub
parent 5e8905b4b2
commit 9a02515c7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ fi
# NixOS: https://github.com/NixOS/nixpkgs/tree/master/nixos/modules/programs/command-not-found
if [[ -x /run/current-system/sw/bin/command-not-found ]]; then
command_not_found_handler() {
/run/current-system/sw/bin/command-not-found -- "$@"
/run/current-system/sw/bin/command-not-found "$@"
}
fi