bugGNU Octave - Bugs: bug #51718, pager is not working

 
 

bug #51718: pager is not working

Submitter:  Dmitri A. Sergatskov <dasergatskov>
Submitted:  Thu 10 Aug 2017 04:14:08 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 10 Aug 2017 04:13:08 PM UTC, comment #9: 

I unset my PAGER environment variable and have verified that Octave now uses the default 'less'.  Marking as fixed and closing report.

Rik <rik5>
Group administrator
Thu 10 Aug 2017 03:58:39 PM UTC, comment #8: 
John W. Eaton <jwe>
Group administrator
Thu 10 Aug 2017 03:06:19 PM UTC, comment #7: 

Aren't the functions in defaults.h the intended replacements for the macros that used to be in defaults.h?

octave::config::default_pager() instead of octave::build_env::DEFAULT_PAGER? Yeah, they're identical, but pager.cc already had a '#include "defaults.h"', which is now unused.

Mike Miller <mtmiller>
Group Member
Thu 10 Aug 2017 02:03:13 PM UTC, comment #6: 
John W. Eaton <jwe>
Group administrator
Thu 10 Aug 2017 01:47:32 PM UTC, comment #5: 

I think this is a mistake.  In previous versions, there was a default pager (normally "less") if the shell PAGER variable was not set.

John W. Eaton <jwe>
Group administrator
Thu 10 Aug 2017 05:23:57 AM UTC, comment #4: 

Maybe ask about it on the octave-maintainers list.  There may be a reason why Octave doesn't supply a default, such as 'less' or 'more', when the PAGER environment variable isn't set.

Rik <rik5>
Group administrator
Thu 10 Aug 2017 05:02:44 AM UTC, comment #3: 

In the shell PAGER is not set and as far as i know it is usually not set in Fedora.

In octave 4.2.1 (and reasonably recent dev version)
PAGER set to "less"

If this is an intended change it is fine with me.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Thu 10 Aug 2017 04:47:25 AM UTC, comment #2: 

At the shell, what is the value of the PAGER environment variable?  If you haven't set anything up then no PAGER will be used.

As another check, start Octave and just type


PAGER


It will return the name of the PAGER that Octave has configured.  My guess is that it is blank for your setup.

Rik <rik5>
Group administrator
Thu 10 Aug 2017 04:17:39 AM UTC, comment #1: 

I can fix it if I do

PAGER("more")
more on


Dmitri.

Dmitri A. Sergatskov <dasergatskov>
Thu 10 Aug 2017 04:14:08 AM UTC, original submission:  

In cb8251337689 tip @ pager ("more") is not working.
"more on" does not make any effect.
E.g. "help help" or a=(1:30)' dumps entire output.

Dmitri.




Dmitri A. Sergatskov <dasergatskov>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by dasergatskov (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-08-10 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2017-08-10 jwe StatusNeed Info Ready For Test
    2017-08-10 rik5 StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code