Skip to content

Commit

Permalink
shells/ksh: Update to 1.0.6
Browse files Browse the repository at this point in the history
From the announcement:

This is an urgent bugfix release that fixes a serious regression in
pathname expansion, see: ksh93/ksh#660
The previous 1.0.5 release is withdrawn and should not be used.

Main changes between 1.0.5 and 1.0.6:

- Fixed a serious regression in pathname expansion where quoted wildcard
   characters were incorrectly expanded if a pattern contains both a brace
   expansion and a variable expansion.
- Fixed a bug where the command to launch a full-screen editor (^X^E in
   emacs and 'v' in vi) could cause the wrong command line to be edited
   if two shell sessions share a .sh_history file.

1.0.5 had a large amount of bugfixes compared to 93u+m/1.0.4. In summary:

- Fixed various bugs causing crashes.
- Fixed many bugs in the emacs and vi line editors, in command completion,
   and in file name completion.
- Fixed various bugs in the handling of quotes, backslash escapes and braces
   when processing shell glob patterns (e.g. in pathname expansion and
'case').
- ksh now throws a panic and exits if a read error (such as an I/O error)
   occurs while trying to read the next command(s) from a running script.
- Fixed many bugs in 'printf' and 'print -f' built-in commands, including:
   . Multiple bugs causing incorrect output for relative date
specifications,
     e.g., printf %T\\n 'exactly 20 months ago' now outputs a correct
result.
   . More printf bugs with mix and match of % and %x$.
   . A data corruption bug when using %B with 'printf -v varname'.
   . A bug causing double evaluation of arithmetic expressions.
- Fixed a bug where 'unset -f commandname', executed in a subshell, hides
   any built-in command by the same name for the duration of that subshell.
- Fixed ${var/#/string} and ${var/%/string} (with anchored empty pattern)
   to work as on mksh, bash and zsh; these are no longer ineffective.
- Fixed incorrect result of array slicing ${array[@]:offset:length} where
   'length' is a nested expansion involving an array.
- Command names can now end in ':' as they can on other shells.
- Fixed a spurious syntax error in compound assignments upon encountering a
   pair of repeated opening parentheses '(('.
- Fixed spurious syntax error in ${parameter:offset:length}: the arithmetic
   expressions 'offset' and 'length' may now contain the operators ( ) & |.
- Fixed a parsing bug in the declaration of .sh.math.* arithmetic functions.
- Fixed nameref self-reference loop detection for more than two namerefs.
- Several improvements to the POSIX compatibility mode.
- Many more minor and/or esoteric bugfixes.
  • Loading branch information
cschuber committed Jun 13, 2023
1 parent 94742ef commit f3cb8cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 89 deletions.
3 changes: 1 addition & 2 deletions shells/ksh/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@

DISTVERSIONPREFIX= v
PORTNAME= ksh
PORTVERSION= 1.0.5
PORTREVISION= 2
PORTVERSION= 1.0.6
CATEGORIES= shells

MAINTAINER= [email protected]
Expand Down
6 changes: 3 additions & 3 deletions shells/ksh/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1686152726
SHA256 (ksh93-ksh-v1.0.5_GH0.tar.gz) = 940d6dd6b4204f4965cf87cbba5bdf2d2c5153975100ee242038425f9470c0fe
SIZE (ksh93-ksh-v1.0.5_GH0.tar.gz) = 2109689
TIMESTAMP = 1686681922
SHA256 (ksh93-ksh-v1.0.6_GH0.tar.gz) = bcb230cb3cbe045e0c08ed8d379fb4e1b434784bb0aab0e990c51a03e63d6721
SIZE (ksh93-ksh-v1.0.6_GH0.tar.gz) = 2111386
84 changes: 0 additions & 84 deletions shells/ksh/files/patch-src_cmd_ksh93_sh_macro.c

This file was deleted.

0 comments on commit f3cb8cd

Please sign in to comment.