GNU bug report logs -
#44663
[PATCH] ui: Launch $PAGER through the shell.
Previous Next
Reported by: Tobias Geerinckx-Rice <me <at> tobias.gr>
Date: Sun, 15 Nov 2020 18:48:02 UTC
Severity: normal
Tags: patch
Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#44663: [PATCH] ui: Launch $PAGER through the shell.
which was filed against the guix-patches package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 44663 <at> debbugs.gnu.org.
--
44663: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=44663
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Hey,
Tobias Geerinckx-Rice <me <at> tobias.gr> writes:
> * guix/ui.scm (call-with-paginated-output-port): Empty PAGER values
> disable paging. Non-empty ones are split into command arguments.
>
> Reported by Daniel Brooks <db48x <at> db48x.net>.
> ---
> guix/ui.scm | 47 ++++++++++++++++++++++++++++-------------------
> 1 file changed, 28 insertions(+), 19 deletions(-)
I see this got pushed with a81258c12415b9cee52c951b8b53cbe46f27654f
about a year ago.
Closing!
Maxim
[Message part 3 (message/rfc822, inline)]
This is the convention elsewhere and sounds like the right thing to do.
* guix/ui.scm (call-with-paginated-output-port): Substitute OPEN-PIPE
for OPEN-PIPE*.
Reported by Daniel Brooks <db48x <at> db48x.net>.
---
guix/ui.scm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/guix/ui.scm b/guix/ui.scm
index 4e686297e8..2b7d9dd64b 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -72,7 +72,7 @@
#:use-module (ice-9 match)
#:use-module (ice-9 format)
#:use-module (ice-9 regex)
- #:autoload (ice-9 popen) (open-pipe* close-pipe)
+ #:autoload (ice-9 popen) (open-pipe close-pipe)
#:autoload (system base compile) (compile-file)
#:autoload (system repl repl) (start-repl)
#:autoload (system repl debug) (make-debug stack->vector)
@@ -1673,9 +1673,9 @@ zero means that PACKAGE does not match any of REGEXPS."
;; instead of 'r': this strips hyperlinks but allows 'less' to make a
;; good estimate of the line length.
(let ((pager (with-environment-variables `(("LESS" ,less-options))
- (open-pipe* OPEN_WRITE
- (or (getenv "GUIX_PAGER") (getenv "PAGER")
- "less")))))
+ (open-pipe (or (getenv "GUIX_PAGER") (getenv "PAGER")
+ "less")
+ OPEN_WRITE))))
(dynamic-wind
(const #t)
(lambda () (proc pager))
--
2.29.2
This bug report was last modified 3 years and 286 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.