environment: Suggestion code gracefully handles empty "/bin" directories.
* guix/scripts/environment.scm (suggest-command-name): Handle the case where 'scandir' returns #f.master
parent
7197710121
commit
16e9e53838
guix/scripts
|
@ -567,7 +567,7 @@ command name."
|
||||||
(_ #t)))
|
(_ #t)))
|
||||||
|
|
||||||
(match (scandir (string-append profile "/bin") not-dot?)
|
(match (scandir (string-append profile "/bin") not-dot?)
|
||||||
(() #f)
|
((or #f ()) #f)
|
||||||
(available
|
(available
|
||||||
(match command
|
(match command
|
||||||
((executable _ ...)
|
((executable _ ...)
|
||||||
|
|
Reference in New Issue