babelfish icon indicating copy to clipboard operation
babelfish copied to clipboard

Deal with Bash `unset`'s `-v` and `-f` flag.

Open JoaoCostaIFG opened this issue 3 years ago • 1 comments

Unset in bash is able to alternate between unsetting functions and variables, using the -f and -v flags, respectively.

This fixes a problem where babelfish would translate unset -f foo to set -e -f; set -e foo. The correct translation would be functions -e foo.

JoaoCostaIFG avatar May 25 '22 23:05 JoaoCostaIFG

I also need this fix, merge plz

joaolucasmartins avatar Jun 09 '22 18:06 joaolucasmartins