amber-lang / amber

💎 Amber the programming language compiled to Bash
https://amber-lang.com
GNU General Public License v3.0
3.9k stars 85 forks source link

[BUG] `silent` keyword doesn't work with `failed` syntax #298

Open KrosFire opened 3 months ago

KrosFire commented 3 months ago

Given code will show error msg if there is an error:

silent $cat file.txt | grep "READY"$ failed {
  unsafe $touch file.txt$
}
Ph0enixKM commented 3 months ago

So the main issue here is that silent keyword does not work properly