bats icon indicating copy to clipboard operation
bats copied to clipboard

$_ is clobbered by debug trap

Open HaleTom opened this issue 8 years ago • 0 comments

bats suffers from the same bug resolved in:

  • https://github.com/postmodern/chruby/pull/381
  • https://github.com/rcaloras/bash-preexec/pull/32

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.

HaleTom avatar Dec 03 '16 13:12 HaleTom