Mail Archives: djgpp/2015/12/15/11:48:29
This is a port of GNU less 481 to MSDOS/DJGPP.
DJGPP specific changes.
=======================
This port no longer uses the supplied DOS/DJGPP specific files defines.ds and
Mekefile.dsg. To configure this package the stock configure script is used.
All the required support files are stored in the /djgpp directory. You can
configure the sources by starting config.bat and passing the required options.
This port also offers perl-regexp (pcre) support so if you want to compile
the sources with this feature you will have to install the pcre library
first. This is available as:
ftp://ftp.delorie.com/pub/djgpp/current/v2tk/pcre837b.zip
If you want this feature you will have to reconfigure and recompile the
port passing the "pcre" command line option to config.bat. By default
this feature will be disabled and the stock posix regex support will be
compiled in. The binary package contains both programs, the one without
pcre support is called "less" and the one with pcre support is called
"lesspcre". Keep the one you prefer and delete the other one.
This port has been configured and compiled to use the MS-DOS "edit" as the
default editor. Which editor shall be used at runtime can always be specified
by the VISUAL and EDITOR environment variables. At runtime, less will detect
which editor shall be started and adjust the command line options passed to
the editor accordingly. This means that edit will get only the file name but
all other editors get all default options or those options specified by the
LESSEDIT environment variable.
Less will search for all configuration and history files at the standard posix
places and with the standard posix names before searching at the standard dos
places with the standard dos names.
Less will look for the system wide configuration files as:
/dev/env/DJDIR/bin/.sysless (deprecated; with LFN support)
/dev/env/DJDIR/bin/_sysless (deprecated; without LFN support)
/dev/env/DJDIR/etc/sysless
c:\_sysless
Less will always give the posix versions precedence over the dos versions of
the files. This means that it will try to load /dev/env/DJDIR/etc/sysless
and if this fails it tries to load c:\_sysless. The other twos are deprecated
but still supported. Here again /dev/env/DJDIR/bin/.sysless will be tried
first and if it fails because it does not exists or because no LFS support is
available then /dev/env/DJDIR/bin/_sysless will be tried.
The same applies to the user configuration files and history files. The user
configuration file will be searched as $HOME/.less and if this fails the dos
version $HOME/_less will be tried. If this fails too then the file _less
will be searched along the dos path as it used to be.
The port has been configured and compiled on WinXP SP3. There is no guarantee
that this may be possible with any other DOS-like OS. Due to the massive use
of long file names it will not be possible to configure and compile without
LFN support. The port has been compiled using gcc520 and bnu225br2.
As usual, all djgpp specific files (diffs, README files, etc.) are stored in
the /djgpp directory. The sources have been configured to be build in the
/_build directory. If for some reason it does not work for you, delete it
contents and configure from scratch again.
For further information about GNU less please read the info docs and NEWS file.
This is an verbatim extract of the NEWS file:
-------------------------------------------------------------------------------
Major changes between "less" versions 458 and 481
* Don't overwrite history file; just append to it.
* New command ESC-G goes to end of currently buffered data in a pipe.
* Disable history feature when compiled with LESSHISTFILE set to "-".
* In more-compatible mode, make the -p option apply to every file opened,
not just the first one.
* In more-compatible mode, change the -e option to work like -E, not -EF.
* Treat multiple CRs before LF are like one CR (all the CRs are hidden).
* Allow "extra" string in lesskey file to append to a multi-char command
(like a search pattern), without executing the command.
* Ignore -u/-U setting while viewing help file, so that
underline and bold chars are displayed correctly.
* Improve detection of "binary" files in UTF-8 mode.
* Fix bug with ++ commands.
* Fix bug where prompt was sometimes not displayed with +G.
* Fix possible memory corruption
* Fix bugs and improve performance in ampersand filtering.
* Automate construction of Unicode tables from Unicode database.
* Allow %% escape sequence in LESSOPEN variable.
-------------------------------------------------------------------------------
The port consists of the usual two packages produced using djdev205
that can be downloaded from ftp.delorie.com and mirrors as (time stamp 2015-12-14):
less 481 binaries, info and man format documentation:
ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/lss481b.zip
less 481 source:
ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/lss481s.zip
Send less specific bug reports to <bug-less AT gnu DOT org>.
Send suggestions and bug reports concerning the DJGPP port to
comp.os.msdos.djgpp or <djgpp AT delorie DOT com>.
Enjoy.
Guerrero, Juan Manuel <juan DOT guerrero AT gmx DOT de>
- Raw text -