# HG changeset patch # User Markus Mützel # Date 1658921220 -7200 # Node ID 929c05cf2afaaed081b5f955227a8ad6bd646966 # Parent 8f67b53ac9ff954e9d3f5d493294be5e7069ab06# Parent ef45a559f592e2b8d240237d917adbb88e45a678 maint: Merge stable to default. diff -r 8f67b53ac9ff -r 929c05cf2afa etc/NEWS.7.md --- a/etc/NEWS.7.md Tue Jul 26 17:20:13 2022 -0700 +++ b/etc/NEWS.7.md Wed Jul 27 13:27:00 2022 +0200 @@ -37,6 +37,12 @@ - `inputParser`: Correctly handle cell default values for optional parameters (bug #62639). - `factor.m`: Performance tweak to avoid division in certain cases. - Fix regression with `\color[rgb]` TeX pattern (bug #62668). +- `regexp`: Check pattern length before accessing it (bug #62704). +- `pkg.m`: Create `PREFIX` and `ARCHPREFIX` directories (bug #62681). +- `pkg`: Replace `OCTAVE_HOME` in `PREFIX` and `ARCHPREFIX` independently (bug #62681). +- `randmtzig.cc`: Add missing `#include ` (bug #62750). +- `pkg`: Fix formatting of `copyfile` message (bug #62769). +- `pkg`: Escape special characters in `OCTAVE_HOME` for `regexprep` (bug #62681). ### GUI @@ -65,6 +71,7 @@ - `primes.m`: Move code examples before math theory. - `primes.m`: Mark variables in docstring with `@var{}` macro. - Rewrite section on automatic type conversions (bug #62283). +- `subsasgn`: Correct example code (bug #33221). Summary of important user-visible changes for version 7 (2022-04-06) diff -r 8f67b53ac9ff -r 929c05cf2afa libinterp/octave-value/ov.cc --- a/libinterp/octave-value/ov.cc Tue Jul 26 17:20:13 2022 -0700 +++ b/libinterp/octave-value/ov.cc Wed Jul 27 13:27:00 2022 +0200 @@ -3869,7 +3869,7 @@ val = magic (3); idx.type = "()"; idx.subs = @{":", 1:2@}; -subsasgn (val, idx, 0) +val = subsasgn (val, idx, 0) @result{} [ 0 0 6 0 0 7 0 0 2 ]