v4.0
v4.0
This release sees significant improvements for use with non-latin characters in both the interactive prompt and shell scripting. It introduces new syntax to make working with structured data even easier than before. As well as new data types and smoother user experience.
Breaking Changes
$PWDis no longer astr. If you need to parse$PWDas a string then you shouldout: $PWDor use${pwd}.is now a valid bareword character for variables. This will break any instances in code that contain something likeout $hello.however you can now useout $(hello).syntax for safer string infixing
Features
dot notation added for variables which allow accessing and writing to object properties. eg
$json.array.indexadded support variable encapsulation via
$()to avoid variable barewords from leaking into other values when infixed. eg$(foobar)is the same as$foobar(read more)variable names can now be Unicode, eg
$(比如) = "举手之劳就可以使办公室更加环保,比如,使用再生纸。"(read more)Unicode wide characters are properly handled in readline
new data type
paththat is an objectnew data type
pathssupport for lambdas added to variables: eg
@array[{ function }]readline
[ctrl]+[f]now supports word matching as well as regexp (read more)readline
[ctrl]+[f]now supports glob filters (eg*.txt) too (read more)$ENVand$GLOBALobjects (deprecates the need forglobalandexport)improved error messages in expressions
scalars can be used as assignees in expressions, eg
$foo = "bar"added
-iflag to ssh autocompletionreadline prompts are now buffered to reduce cursor flickering
Non-User Facing / Maintenance Changes
backend support added for data types to be dynamic objects
updated autocompletion code for
dockerandgit
Bug Fixes
better wide character support in auto completion suggestions
function parameters default and comment fields are no longer order dependent
better string parsing for barewords inside arrays and objects
ahead of time hint caching now done on demand per hint page rather than against every executable upon Murex start up
new lines should be ignored in
%{}bareword
trueandfalseshould be converted to boolean in%{}autocomplete suggestions are now dedup'ed when delayed results return similar suggestions to fast results
various preview pane bug fixes
support for ANSI escape sequences in experimental (disabled by default) TTY buffer
correction to
countdocserror not handled in regexp expression matches,
=~
Published: 26.03.2023 at 17:50
See Also
- Count:
count: Count items in a map, list or array - Interactive Shell: What's different about Murex's interactive shell?
- Public Function:
function: Define a function block - Terminal Hotkeys: A list of all the terminal hotkeys and their uses
%[]Array Builder: Quickly generate arrays%{}Object Builder: Quickly generate objects (dictionaries / maps)path: Structured object for working with file and directory pathspaths: Structured array for working with$PATHstyle datastring(stringing): string (primitive)
This document was generated from gen/changelog/v4.0_doc.yaml.