src.elv.sh@v0.21.0-dev.0.20240515223629-06979efb9a2a/pkg/eval/compiler_test.elvts (about) 1 //////////////////////////// 2 # compile-time deprecation # 3 //////////////////////////// 4 5 //with-deprecation-level 20 6 // This test will need to be frequently updated as deprecated commands get 7 // removed. 8 // 9 // Deprecations of other builtins are implemented in the same way, so we 10 // don't test them repeatedly 11 12 ~> put | eawk { } 13 Deprecation: the "eawk" command is deprecated; use "re:awk" instead 14 [tty]:1:7-10: put | eawk { } 15 16 /////////////////////////////// 17 # multiple compilation errors # 18 /////////////////////////////// 19 20 ~> echo $x; echo $y 21 Multiple compilation errors: 22 variable $x not found 23 [tty]:1:6-7: echo $x; echo $y 24 variable $y not found 25 [tty]:1:15-16: echo $x; echo $y