Skip to content

Commit a136ee1

Browse files
committed
Fix an unknown error on MS Windows
1 parent fd25bd0 commit a136ee1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bach.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,14 @@ function bach_initialize(){
129129
bach_restore_stdin
130130
@mockall "${bash_builtin_cmds[@]}" source .
131131

132-
while read -r name; do
132+
eval "$(builtin export | while read -rs name; do
133133
name="${name%%=*}"
134134
name="${name##* }"
135135
[[ "${name^^}" != BACH_* ]] || continue
136-
unset "$name" || builtin true
137-
done < <(builtin export)
136+
builtin echo "unset '$name' || builtin true"
137+
done)"
138138
builtin export LANG=C TERM=vt100
139-
@unset name util_path
139+
unset name util_path
140140
}
141141
142142
function @real() {

0 commit comments

Comments
 (0)