Omit warning message if MANPATH is not set.
This commit is contained in:
parent
fe45fdc230
commit
e13ad264bc
|
@ -23,7 +23,13 @@
|
||||||
(unescape-uri (http-url-search url))
|
(unescape-uri (http-url-search url))
|
||||||
'())))
|
'())))
|
||||||
(else
|
(else
|
||||||
(let ((man-path ((infix-splitter ":") (getenv "MANPATH"))))
|
(let ((man-path
|
||||||
|
((infix-splitter ":")
|
||||||
|
(or (getenv "MANPATH")
|
||||||
|
(begin
|
||||||
|
(format (current-error-port)
|
||||||
|
"~%Warning: environment variable MANPATH is unset.~%")
|
||||||
|
"")))))
|
||||||
(lambda (url)
|
(lambda (url)
|
||||||
(values man-path
|
(values man-path
|
||||||
(unescape-uri (http-url-search url))
|
(unescape-uri (http-url-search url))
|
||||||
|
|
Loading…
Reference in New Issue