Hello. It seems that the finally clause is actually supported by Pash, although its support is far from ideal. I'm trying this example:
Pash> try { 2 + 2 } catch { } finally { 0 }
And it returns me 4 (almost as I would expect, ha-ha). For the record: in PowerShell it returns both 4 and 0 (and I wasn't expecting that honestly).
But we currently doesn't seem to support the finally clause without the catch clause, and that's not right. For example, the following throws an error and kills Pash process (I am not sure it should kill the process at all when failing to parse something btw):
Pash>
try { 2 + 2 } finally { 0 }
System.InvalidOperationException: expected 'finally_clause' to be a 'catch_clauses'
We're happy to accept any help from you with solving this issue, if you want to fix it.