03-07-2020, 07:57 AM
Split your commands into parts and find out where they fail. Also keep in mind the console is retarded and broken in various ways - e.g. you can't set a cvar and read the new value in one alias - it'll keep using the old value presumably because cvar expansion happens too early. You have to split it into multiple aliases - this will first print old_value, then new_value:
Another issue is that nested curly braces are broken so stuff like
won't work - again you have to split it into multiple steps.
Code:
set some_cvar old_value
alias step1 "set some_cvar new_value ; echo $some_cvar ; step2"
alias step2 "echo $some_cvar"
Another issue is that nested curly braces are broken so stuff like
Code:
${${1 !}}