babelfish icon indicating copy to clipboard operation
babelfish copied to clipboard

Does not properly translate $#/${#} to (count $argv)

Open nazarewk opened this issue 2 years ago • 1 comments

TL;DR

> echo 'echo $# ${#} ${#@}' | babelfish
echo $# $# (count $argv)

Expected behavior

> echo 'echo $# ${#} ${#@}' | babelfish 
(count $argv) (count $argv) (count $argv)

Observed behavior

> echo 'echo $# ${#} ${#@}' | babelfish
echo $# $# (count $argv)

Terraform Configuration

?

Terraform Version

?

Additional information

It translates only the argument count syntax I've never encountered before

nazarewk avatar Feb 13 '23 09:02 nazarewk

@nazarewk This is fixed on my branch. Could you grab it from there and double check it works for ur use case? Cheers! ✌🏻

Neved4 avatar Jan 14 '25 16:01 Neved4