regression: 8789f9108 broke environment-variable preservation
Bug #1882542 reported by
Eduardo Santiago
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bats (Ubuntu) |
Fix Released
|
Undecided
|
Gioele Barabucci | ||
Focal |
New
|
Undecided
|
Unassigned | ||
Jammy |
New
|
Undecided
|
Unassigned | ||
Kinetic |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Commit 8789f910812afbf
if [ -z "$MYSTATE" ]; then
do something
export MYSTATE=
fi
Attached is a reproducer. It passes in 8789f9108^ and, more importantly, bats-core.
Changed in bats (Ubuntu): | |
status: | Fix Committed → Fix Released |
Changed in bats (Ubuntu Kinetic): | |
status: | New → Won't Fix |
To post a comment you must log in.
Be sure to remove the statefile before invoking the reproducer:
$ rm -f /tmp/mystate; /usr/local/ bin/bats -t env-lost.bats
1..2
ok 1 first test
# linecount is 2 (expected 1)
not ok 2 second test
# (in test file env-lost.bats, line 25)
# `false' failed