Subject: CVS commit: pkgsrc/shells/yash
From: Paolo Vincenzo Olivo
Date: 2025-02-13 14:45:20
Message id: 20250213134520.C8F8CFBE0@cvs.NetBSD.org

Log Message:
shells/yash: update to 2.58.1

# upstream changes (since 2.57)

2.58.1

* tests/job-y.tst: Account for root PS1. by @pghvlaans in #106
        Fixed a test case in tests/job-y.tst that was failing when run as root.
* Update NEWS & THANKS for fzy completion by @magicant in #107
        Version 2.58 added completion for fzy, but the NEWS file did not mention it.
	This has been fixed.
* Redefine Actions workflow by @magicant in #108
* share/initialization/common: create HISTFILE directory automatically
  by @unrealapex in #109
    Version 2.58 changed the default $HISTFILE location to
    ${XDG_STATE_HOME}/yash/history, but the initialization script was not
    making the containing directory. This was causing the shell to fail to save
    the history file. The initialization script now creates the directory if it
    does not exist.

2.58

* The location of the initialization files can now be configured
  using the XDG_CONFIG_HOME variable (except in POSIXly-correct
  mode).
* [line-editing] Command line prediction now works in the vi command
  mode.
* [line-editing] Added completion for fzy and git-restore.
* [line-editing] Added completion for git-merge's --continue option.
* [line-editing] The completion for the . built-in now suggests
  directory names for the first operand even before the user enters
  a slash.
* Improved POSIX.1-2024 support:

    - Case command items now can be terminated by ;& instead of ;;
      to force the shell to execute the next item.
        The non-standard terminators ;| and ;;& are also supported
        to resume pattern matching with the next item unless in the
        POSIXly-correct mode.
    - Dollar-single-quotes are now supported.
    - Declaration utility semantics is now supported. Assignment-like
      arguments to the export, local, readonly, and typeset
    - built-ins are now expanded in the same way as assignments are
      expanded.
    - The printf built-in now supports position specifiers in format
      strings as in printf '%2$s %1$s\n' foo bar.
    - The cd and pushd built-ins now support the -e option, which
      can be used to see if the $PWD variable is successfully updated.
    - The exit status of the getopts built-in is now 2 on any error.
    - After the bg built-in resumed a job, the ! special parameter
      expands to the process ID of the job.
    - An interactive shell no longer exits on an error in the exec
      built-in, even if the POSIXly-correct mode is on.
    - The shell's syntax now always allows esac as the first pattern
      of a case branch as in case esac in (esac|case) echo ok; esac.
      Previously, it was a syntax error in the POSIXly-correct mode.

* The exit statuses returned from the cd, pushd, and popd
  built-ins have been updated to make it easier to distinguish the
  reasons for failure.
* Fixed a potential crash caused by an expansion error in nested
  parameter expansion.
* Updated the sample initialization script (yashrc):

    The default $HISTFILE is now set to
    ${XDG_STATE_HOME}/yash/history unless ${HOME}/.yash_history
    exists, in which case the latter is used and a warning is
    printed. To suppress the warning and keep using the previous
    location, you can set the $HISTFILE variable before the sample
    initialization script is sourced.
    Added aliases h='fc -l' and j='jobs'.
    Added the wrapper function for doas in an attempt to remove the
    misleadin

Files:
RevisionActionfile
1.12modifypkgsrc/shells/yash/Makefile
1.4modifypkgsrc/shells/yash/PLIST
1.7modifypkgsrc/shells/yash/distinfo