help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'less' not working


From: David
Subject: Re: 'less' not working
Date: Wed, 9 Apr 2014 10:20:02 -0400

Sorry, I forgot to include that info. I'm running it under Windows 7, 64-bit, so no version of 'less' is provided by the OS. There is a 'less.exe' in the same directory as Octave, though, that was installed along with Octave, I guess.

I couldn't find any file named 'octaverc', maybe that's the problem. Or maybe it has a different name under Windows. I'm not sure where to look for it under Windows.

Is '-X' a valid option for the Linux version of 'less'? Maybe the version of less that was installed isn't 100% compatible.

Thanks.



On Wed, Apr 9, 2014 at 9:54 AM, Mike Miller <address@hidden> wrote:
On Wed, Apr 9, 2014 at 09:23:24 -0400, David wrote:
> I don't know if this is a bug or just a configuration issue, but whenever I
> enter a command that produces more than one page of output, the 'less'
> command produces this error:
>
> less: Unknown option -X
> Usage: less [-ceisS] [-A|-u] [-n #] [-t tag] [-p pos_cmd] [-P prompt]
> [-U[[c][p][
> l|b|8|o|a]]] [file ...]
>
> This happens with both the CLI and GUI versions.

What operating system? What version/flavor of less does your system provide?

You can set the LESS environment variable to specify your own
preferred less options (I do). If that variable is not set, Octave
will pass its own set of options to less. Run

  type ([octave_config_info.startupfiledir filesep "octaverc"])

to see the startup script that sets the default less options.

--
mike


reply via email to

[Prev in Thread] Current Thread [Next in Thread]