From 1766939fad57b7acabcbebdf8efbcf82c4cbf49d Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 17 May 2025 13:42:24 +0200 Subject: modules/nix-index/command_not_found_handler: Remove reference to shell_library `ptmp` was previously (impurely) injected into this code, but is now no longer available. --- modules/by-name/ni/nix-index/command_not_found.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/by-name/ni/nix-index/command_not_found.sh b/modules/by-name/ni/nix-index/command_not_found.sh index 5f7461e6..f650cf7b 100644 --- a/modules/by-name/ni/nix-index/command_not_found.sh +++ b/modules/by-name/ni/nix-index/command_not_found.sh @@ -58,7 +58,7 @@ EOF The program '$cmd' is currently not installed. It is provided by several packages. You can run it once with: EOF - awk --assign=toplevel="$toplevel" 'BEGIN{counter=0} {printf("%3s)", counter); printf(" nix shell %s#%s\n", toplevel, $1); counter+=1}' "$(ptmp "$attrs")" + echo "$attrs" | awk --assign=toplevel="$toplevel" 'BEGIN{counter=0} {printf("%3s)", counter); printf(" nix shell %s#%s\n", toplevel, $1); counter+=1}' ;; esac -- cgit 1.4.1