From 16e9e538386bf30da690502c65b8053ff266e8cb Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Fri, 10 Dec 2021 12:27:58 +0100 Subject: environment: Suggestion code gracefully handles empty "/bin" directories. * guix/scripts/environment.scm (suggest-command-name): Handle the case where 'scandir' returns #f. --- guix/scripts/environment.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guix/scripts/environment.scm') diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm index 821f20e2f2..510cee727f 100644 --- a/guix/scripts/environment.scm +++ b/guix/scripts/environment.scm @@ -567,7 +567,7 @@ command name." (_ #t))) (match (scandir (string-append profile "/bin") not-dot?) - (() #f) + ((or #f ()) #f) (available (match command ((executable _ ...) -- cgit v1.2.3