v6.4
v6.4
This change brings a number of ergonomic improvements to job control, datetime
and working with structures.
Deprecation Warnings
Please read out compatibility commitment to understand how features are deprecated.
the
?
pipe will be deprecated to make way for a the ternary operator. You can achieve the same result with<err> <!out>
, egcommand <err> <!out> parameters... | next-command ...
the
=
andlet
builtins are now officially deprecated. They've been marked as deprecated in the documentation for a couple of years but you'll now receive a deprecation warning when using them. This warning will not impact any functions that call them (they bypass the stdout and stderr pipes and write directly to your TTY) but it is still recommended that you update any existing code not to use it. The change is very simple, Murex supported expressions as first class primitives, so you can simply drop the=
andlet
command names from your expressionstread
has been deprecated for a while due toread
supporting alltread
's use cases.tread
will officially be removed in the next release@[]
syntax for ranging has been deprecated for a while. It will be officially removed in the next release in favour of[]
backtick strings (````) has been an undocumented hack for several years. This release officially sees that hack as deprecated and will be removed in the next release
die
has been deprecated because it just adds a feature for no purpose. It was original borrowed from Perl but realistically you can do the same withexit 1
so this removal is to bring the language complexity down.
Breaking Changes
None
v6.4.2xxx
Features
csv
: when reformatting a generic or list of strings into a CSV, any preceding whitespace will now be trimmed. This behaviour can be disabled (ie reverted to pre-6.4.2xxx parsing) inconfig
:config set csv left-trim false
core: improved memory usage. Garbage collection automatically deallocates memory after each prompt when in interactive mode (issue #896)
onPrompt
: new interrupt:return
performed after[Return]
is pressed but while the cursor is still on the same line as the prompt (read more)
Bug Fixes
expr
: integer comparisons weren't being compared correctly when strict types was disabled. This wouldn't affect typical use cases because Murex defaults tonum
types which are floats (discussion #902 issue #903)
v6.4.1xxx
Features
runtime
: new flag:--about
reports information about the Murex system. Useful for debugging (issue #896)runtime
:--go-gc
now forces the garbage collector to deallocate memory rather than just marking memory as unused (issue #896)
Bug Fixes
expr
fix panic when using parentheses in dot notation (issue #892)versioning: only auto-version if
$MUREX_DEV
is setversioning:
0
pad semver revision to 4 characters
v6.4.0xxx
Features
IO redirection: smarter file pipes which solve the race condition seen in traditional shells where you try to write to the same file you're reading from (EXPERIMENTAL) (issue #851)
private functions: these can now be undefined (issue #429)
core:
(expressions)
are supported in dot notation. eg:» bob = %[foo bar baz] » out $bob.(1+1) baz
elements: negative values are supported for counting backwards. eg:
» bob = %[foo bar baz] » out $(bob.-1) baz
core: support added for Bash-like job IDs (
%n
) in job control (issue #889)bg
/fg
: support for command line parameters, as well as Bash-like job IDs (issue #889)function: support for optional parameters when using named parameters (issue #888)
autocomplete: improved autocompletion for
kill
(issue #867)datetime
: numerous ergonomic improvements (read more, commit)readline:
MaxTabCompleterRows
is now more granular (commit)
Bug Fixes
private functions: mutex added to mitigate a potential race condition (issue #883)
core: line numbering bugfix (commit)
readline: when in Vim mode,
a
andA
should move the cursor right (commit)index: support for null values (commit)
core: improvements with how raw command line parameters are passed to internal routines, which fixes a number of reporting bugs in process management tools
Special Thanks
Thank yous for this release goes to tiymat, atagen for your testing and feedback.
Also thank you to everyone in the discussions group and all who raise bug reports.
You rock!
Published: 11.12.2024 at 22:09
See Also
- Background Process (
bg
): Run processes in the background - Date And Time Conversion (
datetime
): A date and/or time conversion tool (likeprintf
but for date and time values) - Expressions (
expr
): Expressions: mathematical, string comparisons, logical operators - Foreground Process (
fg
): Sends a background process into the foreground - Get Nested Element (
[[ Element ]]
): Outputs an element from a nested structure - How To Contribute: Murex is community project. We gratefully accept contributions
- Shell Configuration And Settings (
config
): Query or define Murex runtime settings - Shell Runtime (
runtime
): Returns runtime information on the internal state of Murex csv
: CSV files (and other character delimited tables)int
: Whole number (primitive)- index: Outputs an element from an array, map or table
- onPrompt: Events triggered by changes in state of the interactive shell
This document was generated from gen/changelog/v6.4_doc.yaml.