Skip to content
Snippets Groups Projects
Unverified Commit e66f243e authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

ui: Set 'LESS' environment variable unconditionally.

Fixes <https://bugs.gnu.org/41811>.
Reported by Lars-Dominik Braun <lars@6xq.net>.

* guix/ui.scm (call-with-paginated-output-port): Remove (getenv "LESS")
call.
parent 4f6e6c04
No related branches found
No related tags found
No related merge requests found
......@@ -1562,9 +1562,9 @@ (define (call-with-paginated-output-port proc)
(if (isatty?* (current-output-port))
;; Set 'LESS' so that 'less' exits if everything fits on the screen (F),
;; lets ANSI escapes through (r), does not send the termcap
;; initialization string (X).
(let ((pager (with-environment-variables `(("LESS"
,(or (getenv "LESS") "FrX")))
;; initialization string (X). Set it unconditionally because some
;; distros set it to something that doesn't work here.
(let ((pager (with-environment-variables `(("LESS" "FrX"))
(open-pipe* OPEN_WRITE
(or (getenv "GUIX_PAGER") (getenv "PAGER")
"less")))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment