jorgebucaran / fishtape

100% pure-Fish test runner
MIT License
347 stars 20 forks source link

Properly restore export bit #35

Closed faho closed 5 years ago

faho commented 5 years ago

Changes to fish 3.0 meant that doing

set -g LANG $LANG

would cause it to fall back to the C locale (i.e. no unicode).

However, fishtape_restore_globals unset the export bit for every variable, which is wrong in general.

So we save the export state in the variable name and restore it later.