From 864524886d136c4fbdcda5c6e3f2ded48d8fb28c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 15 Dec 2022 12:47:04 +0200 Subject: [PATCH] Allow use of search-paths for SCSH_LIB_DIRS. This makes it easier to take an environment variable containing more than one directory in the SCSH_LIB_DIRS and parse it into the series of strings which SCSH_LIB_DIRS actually expects. --- scheme/lib-dirs.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/scheme/lib-dirs.scm b/scheme/lib-dirs.scm index a1fc009..c630fb4 100644 --- a/scheme/lib-dirs.scm +++ b/scheme/lib-dirs.scm @@ -75,6 +75,7 @@ (let ((val (read))) (cond ((eof-object? val) '()) ((string? val) (cons val (recur))) + ((symbol? val) (cons (symbol->string val) (recur))) ((not val) (append default-lib-dirs (recur))) (else (error