• ANNOUNCE: DJGPP port of GNU Bash 4.4.28 uploaded.

    From [via djgpp-announce@delorie.com]" <@21:1/5 to All on Tue May 2 01:16:02 2023
    This is a port of GNU Bash 4.4.28 to MSDOS/DJGPP.

    Bash is the GNU Project's Bourne Again SHell, a complete implementation
    of the POSIX.2 shell spec, but also with interactive command line editing,
    job control on architectures that support it, csh-like features such as
    history substitution and brace expansion, and a slew of other features.

    DJGPP specific changes.

    - This port is based on the last port of bash to DJGPP (aka bsh4253*.zip).

    - The port checks at run time if LFN support is available or not and
    selects the file names of temporary files that are created accordingly.

    - The port now supports colorized printing on terminal in the same fashion
    as other DJGPP ports like grep and diffutils do. This does not mean that
    it replaces the colorization support of those programs. It means that in
    case like makefiles, where the output can colorized, this is supported by
    settimg the environment variable TERM=djgpp the output produced by the
    makefile run will be colorized. Of course any other program that honors
    the TERM variable should benefit from the colorization support.

    - The port has been compiled using a C library version compiled from
    current repository code. To avoid any nmalloc related issues, the
    old malloc functions have been compiled instead of nmalloc.

    - There may exist much more DOS specific bugs in this port that have
    still not been discovered and that will be fixed as they appear.

    - The testsuite is POSIX centric and has not been ported. Especially
    assumptions about paths that are POSIX specific make it really difficult
    to adjust the testsuite to DOS. Currently the port can only be tested
    by using it.
    It is also not clear at all if this port does work on FreeDOS and
    OpenDos in a reliably way.

    - The port has been configured and compiled on WinXP SP3, Win98SE,
    MS-DOS 7.10 using DOSLFN 0.41f and MS-DOS 6.22 using DOSLFN 0.41f.
    There is no guarantee that this may be possible with any other DOS-
    like OS. Due to the use of long file names it will not be possible
    to configure and compile without LFN support. The port has been
    compiled using gcc346 and bnu2351b.

    - The coprocess support and the coproc reserved word have been disabled.
    This feature requires special pipe support and this may be implemented
    in the future.

    - To be able to build this port you may need to have LFN support.

    - If NLS support is wanted, then the sources must be reconfigured passing
    the nls option to config.bat.

    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 "0build" directory. If for some reason it does not work for you,
    delete its contents and configure from scratch again.

    Please read the docs to become familiar with this product.

    Here is an extract of the NEWS file showing the user visible changes
    from the last port (GNU Bash 4.2.53) to this one:


    This is a terse description of the new features added to bash-4.4 since
    the release of bash-4.3. As always, the manual page (doc/bash.1) is
    the place to look for complete descriptions.

    1. New Features in Bash

    a. There is now a settable configuration #define that will cause the shell
    to exit if the shell is running setuid without the -p option and setuid
    to the real uid fails.

    b. Command and process substitutions now turn off the `-v' option when
    executing, as other shells seem to do.

    c. The default value for the `checkhash' shell option may now be set at
    compile time with a #define.

    d. The `mapfile' builtin now has a -d option to use an arbitrary character
    as the record delimiter, and a -t option to strip the delimiter as
    supplied with -d.

    e. The maximum number of nested recursive calls to `eval' is now settable in
    config-top.h; the default is no limit.

    f. The `-p' option to declare and similar builtins will display attributes for
    named variables even when those variables have not been assigned values
    (which are technically unset).

    g. The maximum number of nested recursive calls to `source' is now settable
    in config-top.h; the default is no limit.

    h. All builtin commands recognize the `--help' option and print a usage

    i. Bash does not allow function names containing `/' and `=' to be exported.

    j. The `ulimit' builtin has new -k (kqueues) and -P (pseudoterminals) options.

    k. The shell now allows `time ; othercommand' to time null commands.

    l. There is a new `--enable-function-import' configuration option to allow
    importing shell functions from the environment; import is enabled by

    m. `printf -v var ""' will now set `var' to the empty string, as if `var=""'
    had been executed.

    n. GLOBIGNORE, the pattern substitution word expansion, and programmable
    completion match filtering now honor the value of the `nocasematch' option.

    o. There is a new ${parameter@spec} family of operators to transform the
    value of `parameter'.

    p. Bash no longer attempts to perform compound assignment if a variable on the
    rhs of an assignment statement argument to `declare' has the form of a
    compound assignment (e.g., w='(word)' ; declare foo=$w); compound
    assignments are accepted if the variable was already declared as an array,
    but with a warning.

    q. The declare builtin no longer displays array variables using the compound
    assignment syntax with quotes; that will generate warnings when re-used as
    input, and isn't necessary.

    r. Executing the rhs of && and || will no longer cause the shell to fork if
    it's not necessary.

    s. The `local' builtin takes a new argument: `-', which will cause it to save
    and the single-letter shell options and restore their previous values at
    function return.

    t. `complete' and `compgen' have a new `-o nosort' option, which forces
    readline to not sort the completion matches.

    u. Bash now allows waiting for the most recent process substitution, since it
    appears as $!.

    v. The `unset' builtin now unsets a scalar variable if it is subscripted with
    a `0', analogous to the ${var[0]} expansion.

    w. `set -i' is no longer valid, as in other shells.

    x. BASH_SUBSHELL is now updated for process substitution and group commands
    in pipelines, and is available with the same value when running any exit

    y. Bash now checks $INSIDE_EMACS as well as $EMACS when deciding whether or
    not bash is being run in a GNU Emacs shell window.

    z. Bash now treats SIGINT received when running a non-builtin command in a
    loop the way it has traditionally treated running a builtin command:
    running any trap handler and breaking out of the loop.

    aa. New variable: EXECIGNORE; a colon-separate list of patterns that will
    cause matching filenames to be ignored when searching for commands.

    bb. Aliases whose value ends in a shell metacharacter now expand in a way to
    allow them to be `pasted' to the next token, which can potentially change
    the meaning of a command (e.g., turning `&' into `&&').

    cc. `make install' now installs the example loadable builtins and a set of
    bash headers to use when developing new loadable builtins.

    dd. `enable -f' now attempts to call functions named BUILTIN_builtin_load when
    loading BUILTIN, and BUILTIN_builtin_unload when deleting it. This allows
    loadable builtins to run initialization and cleanup code.

    ee. There is a new BASH_LOADABLES_PATH variable containing a list of directories
    where the `enable -f' command looks for shared objects containing loadable

    ff. The `complete_fullquote' option to `shopt' changes filename completion to
    quote all shell metacharacters in filenames and directory names.

    gg. The `kill' builtin now has a `-L' option, equivalent to `-l', for
    compatibility with Linux standalone versions of kill.

    hh. BASH_COMPAT and FUNCNEST can be inherited and set from the shell's initial

    ii. inherit_errexit: a new `shopt' option that, when set, causes command
    substitutions to inherit the -e option. By default, those subshells disable
    -e. It's enabled as part of turning on posix mode.

    jj. New prompt string: PS0. Expanded and displayed by interactive shells after
    reading a complete command but before executing it.

    kk. Interactive shells now behave as if SIGTSTP/SIGTTIN/SIGTTOU are set to
    SIG_DFL when the shell is started, so they are set to SIG_DFL in child

    ll. Posix-mode shells now allow double quotes to quote the history expansion

    mm. OLDPWD can be inherited from the environment if it names a directory.

    nn. Shells running as root no longer inherit PS4 from the environment, closing
    a security hole involving PS4 expansion performing command substitution.

    oo. If executing an implicit `cd' when the `autocd' option is set, bash will
    now invoke a function named `cd' if one exists before executing the `cd'

    pp. Value conversions (arithmetic expansions, case modification, etc.) now
    happen when assigning elements of an array using compound assignment.

    qq. There is a new option settable in config-top.h that makes multiple
    directory arguments to `cd' a fatal error.

    rr. Bash now uses mktemp() when creating internal temporary files; it produces
    a warning at build time on many Linux systems.

    2. New Features in Readline

    a. The history truncation code now uses the same error recovery mechansim as
    the history writing code, and restores the old version of the history file
    on error. The error recovery mechanism handles symlinked history files.

    b. There is a new bindable variable, `enable-bracketed-paste', which enables
    support for a terminal's bracketed paste mode.

    c. The editing mode indicators can now be strings and are user-settable
    (new `emacs-mode-string', `vi-cmd-mode-string' and `vi-ins-mode-string'
    variables). Mode strings can contain invisible character sequences.
    Setting mode strings to null strings restores the defaults.

    d. Prompt expansion adds the mode string to the last line of a multi-line
    prompt (one with embedded newlines).

    e. There is a new bindable variable, `colored-completion-prefix', which, if
    set, causes the common prefix of a set of possible completions to be
    displayed in color.

    f. There is a new bindable command `vi-yank-pop', a vi-mode version of emacs-
    mode yank-pop.

    g. The redisplay code underwent several efficiency improvements for multibyte

    h. The insert-char function attempts to batch-insert all pending typeahead
    that maps to self-insert, as long as it is coming from the terminal.

    i. rl_callback_sigcleanup: a new application function that can clean up and
    unset any state set by readline's callback mode. Intended to be used
    after a signal.

    j. If an incremental search string has its last character removed with DEL, the
    resulting empty search string no longer matches the previous line.

    k. If readline reads a history file that begins with `#' (or the value of
    the history comment character) and has enabled history timestamps, the
    history entries are assumed to be delimited by timestamps. This allows
    multi-line history entries.

    l. Readline now throws an error if it parses a key binding without a
    terminating `:' or whitespace.

    m. The default binding for ^W in vi mode now uses word boundaries specified
    by Posix (vi-unix-word-rubout is bindable command name).

    n. rl_clear_visible_line: new application-callable function; clears all
    screen lines occupied by the current visible readline line.

    o. rl_tty_set_echoing: application-callable function that controls whether
    or not readline thinks it is echoing terminal output.

    p. Handle >| and strings of digits preceding and following redirection
    specifications as single tokens when tokenizing the line for history

    q. Fixed a bug with displaying completions when the prefix display length
    is greater than the length of the completions to be displayed.

    r. The :p history modifier now applies to the entire line, so any expansion
    specifying :p causes the line to be printed instead of expanded.

    s. New application-callable function: rl_pending_signal(): returns the signal
    number of any signal readline has caught but not yet handled.

    t. New application-settable variable: rl_persistent_signal_handlers: if set
    to a non-zero value, readline will enable the readline-6.2 signal handler
    behavior in callback mode: handlers are installed when
    rl_callback_handler_install is called and removed removed when a complete
    line has been read.

    ------------------------------------------------------------------------------- This is a terse description of the new features added to bash-4.3 since
    the release of bash-4.2. As always, the manual page (doc/bash.1) is
    the place to look for complete descriptions.

    1. New Features in Bash

    a. The `helptopic' completion action now maps to all the help topics, not just
    the shell builtins.

    b. The `help' builtin no longer does prefix substring matching first, so
    `help read' does not match `readonly', but will do it if exact string
    matching fails.

    c. The shell can be compiled to not display a message about processes that
    terminate due to SIGTERM.

    d. Non-interactive shells now react to the setting of checkwinsize and set
    LINES and COLUMNS after a foreground job exits.

    e. There is a new shell option, `globasciiranges', which, when set to on,
    forces globbing range comparisons to use character ordering as if they
    were run in the C locale.

    f. There is a new shell option, `direxpand', which makes filename completion
    expand variables in directory names in the way bash-4.1 did.

    g. In Posix mode, the `command' builtin does not change whether or not a
    builtin it shadows is treated as an assignment builtin.

    h. The `return' and `exit' builtins accept negative exit status arguments.

    i. The word completion code checks whether or not a filename containing a
    shell variable expands to a directory name and appends `/' to the word
    as appropriate. The same code expands shell variables in command names
    when performing command completion.

    j. In Posix mode, it is now an error to attempt to define a shell function
    with the same name as a Posix special builtin.

    k. When compiled for strict Posix conformance, history expansion is disabled
    by default.

    l. The history expansion character (!) does not cause history expansion when
    followed by the closing quote in a double-quoted string.

    m. `complete' and its siblings compgen/compopt now takes a new `-o noquote'
    option to inhibit quoting of the completions.

    n. Setting HISTSIZE to a value less than zero causes the history list to be
    unlimited (setting it 0 zero disables the history list).

    o. Setting HISTFILESIZE to a value less than zero causes the history file size
    to be unlimited (setting it to 0 causes the history file to be truncated
    to zero size).

    p. The `read' builtin now skips NUL bytes in the input.

    q. There is a new `bind -X' option to print all key sequences bound to Unix

    r. When in Posix mode, `read' is interruptible by a trapped signal. After
    running the trap handler, read returns 128+signal and throws away any
    partially-read input.

    s. The command completion code skips whitespace and assignment statements
    before looking for the command name word to be completed.

    t. The build process has a new mechanism for constructing separate help files
    that better reflects the current set of compilation options.

    u. The -nt and -ot options to test now work with files with nanosecond
    timestamp resolution.

    v. The shell saves the command history in any shell for which history is
    enabled and HISTFILE is set, not just interactive shells.

    w. The shell has `nameref' variables and new -n(/+n) options to declare and
    unset to use them, and a `test -R' option to test for them.

    x. The shell now allows assigning, referencing, and unsetting elements of
    indexed arrays using negative subscripts (a[-1]=2, echo ${a[-1]}) which
    count back from the last element of the array.

    y. The {x}<word redirection feature now allows words like {array[ind]} and
    can use variables with special meanings to the shell (e.g., BASH_XTRACEFD).

    z. There is a new CHILD_MAX special shell variable; its value controls the
    number of exited child statues the shell remembers.

    aa. There is a new configuration option (--enable-direxpand-default) that
    causes the `direxpand' shell option to be enabled by default.

    bb. Bash does not do anything special to ensure that the file descriptor
    assigned to X in {x}<foo remains open after the block containing it

    cc. The `wait' builtin has a new `-n' option to wait for the next child to
    change status.

    dd. The `printf' %(...)T format specifier now uses the current time if no
    argument is supplied.

    ee. There is a new variable, BASH_COMPAT, that controls the current shell
    compatibility level.

    ff. The `popd' builtin now treats additional arguments as errors.

    gg. The brace expansion code now treats a failed sequence expansion as a
    simple string and will continue to expand brace terms in the remainder
    of the word.

    hh. Shells started to run process substitutions now run any trap set on EXIT.

    ii. The fc builtin now interprets -0 as the current command line.

    jj. Completing directory names containing shell variables now adds a trailing
    slash if the expanded result is a directory.

    kk. `cd' has a new `-@' option to browse a file's extended attributes on
    systems that support O_XATTR.

    ll. The test/[/[[ `-v variable' binary operator now understands array

    2. New Features in Readline

    a. Readline is now more responsive to SIGHUP and other fatal signals when
    reading input from the terminal or performing word completion but no
    longer attempts to run any not-allowable functions from a signal handler

    b. There are new bindable commands to search the history for the string of
    characters between the beginning of the line and the point
    (history-substring-search-forward, history-substring-search-backward)

    c. Readline allows quoted strings as the values of variables when setting
    them with `set'. As a side effect, trailing spaces and tabs are ignored
    when setting a string variable's value.

    d. The history library creates a backup of the history file when writing it
    and restores the backup on a write error.

    e. New application-settable variable: rl_filename_stat_hook: a function called
    with a filename before using it in a call to stat(2). Bash uses it to
    expand shell variables so things like $HOME/Downloads have a slash

    f. New bindable function `print-last-kbd-macro', prints the most-recently-
    defined keyboard macro in a reusable format.

    g. New user-settable variable `colored-stats', enables use of colored text
    to denote file types when displaying possible completions (colored analog
    of visible-stats).

    h. New user-settable variable `keyseq-timout', acts as an inter-character
    timeout when reading input or incremental search strings.

    i. New application-callable function: rl_clear_history. Clears the history list
    and frees all readline-associated private data.

    j. New user-settable variable, show-mode-in-prompt, adds a characters to the
    beginning of the prompt indicating the current editing mode.

    k. New application-settable variable: rl_input_available_hook; function to be
    called when readline detects there is data available on its input file

    l. Readline calls an application-set event hook (rl_event_hook) after it gets
    a signal while reading input (read returns -1/EINTR but readline does not
    handle the signal immediately) to allow the application to handle or
    otherwise note it.

    m. If the user-settable variable `history-size' is set to a value less than
    0, the history list size is unlimited.

    n. New application-settable variable: rl_signal_event_hook; function that is
    called when readline is reading terminal input and read(2) is interrupted
    by a signal. Currently not called for SIGHUP or SIGTERM.

    o. rl_change_environment: new application-settable variable that controls
    whether or not Readline modifies the environment (currently readline
    modifies only LINES and COLUMNS).


    The port consists of the usual three packages that have been produced using
    djdev20X (CVS repository code) and can be downloaded from ftp.delorie.com
    and mirrors as (time stamp 2023-03-26):

    GNU Bash 4.4.28 binary, info and man format documentation:

    GNU Bash 4.4.28 dvi, html, pdf and ps format documentation:

    GNU Bash 4.4.28 source:

    Send GNU Bash specific bug reports to <bug-bash@gnu.org>.
    Send suggestions and bug reports concerning the DJGPP port
    to comp.os.msdos.djgpp or <djgpp@delorie.com>.


    Guerrero, Juan Manuel <juan.guerrero@gmx.de>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From vjp2.at@at.BioStrategist.dot.dot.co@21:1/5 to All on Wed Jun 14 00:11:37 2023
    Way cool

    Vasos Panagiotopoulos panix.com/~vjp2/vasos.htm
    ---{Nothing herein constitutes advice. Everything fully disclaimed.}---

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)