We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
grep -c
wc -l
-n
echo
1 parent 0fc3804 commit 7324a8cCopy full SHA for 7324a8c
command-not-found.sh
@@ -17,7 +17,7 @@ command_not_found_handle () {
17
toplevel=nixpkgs # nixpkgs should always be available even in NixOS
18
cmd=$1
19
attrs=$(@out@/bin/nix-locate --minimal --no-group --type x --type s --whole-name --at-root "/bin/$cmd")
20
- len=$(echo -n "$attrs" | grep -c "^")
+ len=$(echo $attrs | wc -l)
21
22
case $len in
23
0)
0 commit comments