$+x 'Greedy' expansion operator. Expands to all args after and including arg x.
$# Argument count expansion. Expands to number of arguments (0 for sar_expand)
Expansions are no longer capped at 9 arguments
Cond bugs fixed and now more verbose errors
Cond string comparison refactor - all flavors (map, prev_map, game, var:) use one value
?variable shorthand for var:variable, removes need for breakset.
var:variable works on RHS of string comparisons. Similarly, ?variable. It's now far simpler to, for example, existence check svars, just have svar_set blank "" and cond ?var=?blank "it's blank". Likewise for exact string matching something including a whitespace char, etc
sar_on_pb fix and sar_on_not_pb
svar_substr <variable> <from> [len]
os svar (lin or win). I was too lazy to make it a cond, and this way you can I guess simulate being on different OS by changing the svar? I solemnly swear I will won't use this in config+++ frickery, no harm whatsoever in adding it :))
Branch remade for cleaner merge
$+x
'Greedy' expansion operator. Expands to all args after and including arg x.$#
Argument count expansion. Expands to number of arguments (0 forsar_expand
)?variable
shorthand forvar:variable
, removes need for breakset.var:variable
works on RHS of string comparisons. Similarly,?variable
. It's now far simpler to, for example, existence check svars, just havesvar_set blank ""
andcond ?var=?blank "it's blank"
. Likewise for exact string matching something including a whitespace char, etcsar_on_pb
fix andsar_on_not_pb
svar_substr <variable> <from> [len]
os
svar (lin
orwin
). I was too lazy to make it a cond, and this way you can I guess simulate being on different OS by changing the svar? I solemnly swear Iwillwon't use this in config+++ frickery, no harm whatsoever in adding it :))