v2.7
v2.7
This update has introduced another potential breaking change for your safety: zero length arrays now fail by default. Also errors inside subshells will cause the parent command to fail if ran inside a try or trypipe block.
Breaking Changes:
zero length arrays returned from subshells (eg
echo @{g this-file-does-not-exist}) should fail by default, like unset variables. This is enabled by default but can be disabled viaconfig: set proc strict-arrays falseautoglob should fail if it doesn't match any results. eg
@g echo this-file-does-not-exist.*Subshells should fail parent command when used inside
tryandtrypipeblocks. egtry { echo ${false} }
Features:
functionnow supports defining parametersAdded support fro
&&egdo-something && do-something-elsefor chaining successful commandsAdded support for
||egdo-something || do-something-elsefor chaining unsuccessful commandsAdded support for writing to the terminal emulator's titlebar via
config: set shell titlebar-func { block }titlebar-funccan also be written to yourtmuxwindow title viaconfig: set shell tmux-echo true.New reserved variable:
$HOSTNAMENew reserved variables:
$1(and upwards) which correlates to the scope's parameter index.$1is the functions first parameter.$2is the second.$13is the thirteenth.New reserved variable:
$0which contains the function nameNew event:
onCommandCompletion(this is experimental and subject to change in the next release)Macro variables. eg
echo Hello ^$namewill prompt the user to enter a name. Macro variables are only support in the REPLreadnow supports flags (eg default option, etc) to allow for a better experience in shell scripting
Minor Changes:
You can now overwrite
onKeyPressevents. This no longer produces an error forcing you to remove the old event before adding the new oneAutocompletion suggestions shouldn't be sorted is results include paths (improves the ordering of autocompletion suggestions)
Autocompletion suggestions for
openagentbuiltinAutocompletion suggestions for hashtags
Test counts re-added to website
Windows should show file extensions by default in autocompletion results
Bug Fixes:
Fix inverted logic on
forceTTY:config: get proc force-tty falseset by default, which then proxies stderr and prints them in redctrl+c (^c) now currectly sends SIGTERM rather than just ending the child process
Better handling of SIGTERM
SIGTSTP isn't working. Switched to SIGSTOP when (^z) doesn't
Fix panic in event
onFilesystemChangewhere fileRef is not getting passed correctlyFix panic in event
onFilesystemChangewhere path is zero length stringSome improvements to variable previews in the REPL
countshould check if it is a methodAST cache now checked more regularly. This is to reduce the risk of memory leaks during fuzz or load testing
murex-docsstill referred tolenbuiltin. That should be changed tocountLots of fuzzing added -- a few edge case bugs discovered
Published: 15.05.2022 at 22:49
See Also
- Define Handlers For "
open" (openagent): Creates a handler function foropen - Murex Event Subsystem:
event: Event driven programming for shell scripts - Public Function:
function: Define a function block - Read User Input:
read:reada line of input from the user and store as a variable - Reserved Variables: Special variables reserved by Murex
- Shell Configuration And Settings:
config: Query or define Murex runtime settings &&And Logical Operator: Continues next operation if previous operation passes||Or Logical Operator: Continues next operation only if previous operation fails
This document was generated from gen/changelog/v2.7_doc.yaml.