sstephenson / bats

Bash Automated Testing System
MIT License
7.12k stars 518 forks source link

$_ is clobbered by debug trap #194

Open HaleTom opened 7 years ago

HaleTom commented 7 years ago

bats suffers from the same bug resolved in:

This is a "feature" of bash, see this answer on SO.

I discovered this when my bash-preexec returned a false-positive due to this "feature" not being worked-around in bats.