Skip to content

Commit

Permalink
Fix an unknown error on MS Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
chaifeng committed Sep 23, 2021
1 parent fd25bd0 commit a136ee1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bach.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,14 @@ function bach_initialize(){
bach_restore_stdin
@mockall "${bash_builtin_cmds[@]}" source .

while read -r name; do
eval "$(builtin export | while read -rs name; do
name="${name%%=*}"
name="${name##* }"
[[ "${name^^}" != BACH_* ]] || continue
unset "$name" || builtin true
done < <(builtin export)
builtin echo "unset '$name' || builtin true"
done)"
builtin export LANG=C TERM=vt100
@unset name util_path
unset name util_path
}
function @real() {
Expand Down

0 comments on commit a136ee1

Please sign in to comment.