You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix fetch(url:Str, decode_hints) reading HTTP://... (uppercase scheme) as a file
Fix break and continue in a switch/cond/match arm not reaching the enclosing loop. Fixes ngs my.ngs cmd -- arg ... failing with KeyNotFound.
Fix switch/cond/match with more than 16 arms aborting the compiler
Fix $* as a redirect target (e.g. $(echo x > $*a)) aborting the compiler. It is now a syntax error.
Fix Arr(ArrLike) returning a copy instead of the underlying array
Empty source (compile(""), an empty file) is now an empty program, not CompileFail
Fix %(...) and other subshell literals being a syntax error as a parameter pattern
Fix return, break and continue inside method call arguments, named arguments, array and hash literals, assignments, string interpolation and switch arm values corrupting the stack
Fix MatchSuccess from a RegExp match dropping trailing capture groups that did not participate. They are now null in matches (and present in positions), like leading and middle ones. matches/positions length now always equals the pattern's group count + 1, which also affects get(MatchSuccess, idx, dflt) (now null, not dflt, for such a group) and positional captures after a RegExp in composite patterns.
Fix code constructs at the top level of a file (commands syntax).
Fix $*NAME in commands (and $**NAME in %{...}) syntax
Fix huge Int indexes wrapping instead of throwing ([](Arr, Int), ord() etc.)
Fix Int(s:Str) silently wrapping numbers outside INT_MIN..INT_MAX; it now throws InvalidArgument
Int(s:Str) now accepts trailing whitespace
Fix Real(s:Str) with a negative number and a fraction (Real("-1.5") was -0.5, Real("-0.5") was 0.5)
Real(s:Str) now accepts surrounding whitespace and rejects a sign or whitespace after the dot (Real("1.-5"), Real("1. 5"))
Fix split(Str, Str, Int) with max_parts=1 splitting fully
Fix compile() output not being reproducible
Fix retry() running success_predicate after a swallowed RetryAssertFail
Fix .=(NormalType, Str, Any) (T.user = v) evaluating to the field name instead of v
Fix and improve documentation
Document cd: and ok_sig: command options
Fix ok_sig: command option failing commands that exit normally, including with exit code 0
Document null range end in [] and []= with NumRange, null range start/end with PredRange
Fix encode_base64() truncating its input at the first NUL byte
Fix encode_base64() returning a trailing newline on macOS
Unhardcode 10000 lines limit for source files
Support --dashed-command-line-switches
Fix ==(Lock, Lock) and ==(Cond, Cond)
Fix concurrent wait(Process) calls on the same process failing to join its threads
Fix finished(Process) returning false for an exited process until wait()
Fix kill(Process) and kill(ProcessesPipeline) signalling an exited process
kill(ProcessesPipeline) now returns the pipeline, like wait(ProcessesPipeline)
Str(RegExp) is now returning the literal (/a+/i), not <RegExp>
Fix repeated regular expression flag (/abc/ii) compiling with wrong options
Document $[...]
Document guard in catch clauses
Document that a Fun default value (dflt etc.) is called to get the value
Fix decode(Str, AnyOf) throwing MethodNotFound for a type without decode()
Fix main rejecting arguments for parameters with AnyOf
Breaking changes
decode(Str, Type) now throws DecodeFail, not MethodNotFound, for a type without decode()
Parameter defaults are now instantiated per call through instantiate_param_dflt(DEFAULT_FROM_DEFINITION), which can throw MethodNotFound.
Fix copy(Set), Set + Set and inspect(Set) hardcoding Set instead of the value's exact type.
Set + Set now throws InvalidArgument unless both operands are of the same type.
A :: (pipeline) option after a : (command) option or after | is now a syntax error.
wait(Process) on a failed process throws ProcessFail on every call, not only the first.
Remove accept(Int, c_sockaddr) and c_accept(Int, c_sockaddr_un). Use accept(Int).
Remove recvfrom(Int, Int, Int, c_sockaddr) and c_recvfrom(Int, Int, Int, c_sockaddr_un) in favor of recvfrom(Int, Int, Int=0), which returns [data, address].
id of net::Connection is now a process-wide unique Str, also on client connections.