Permalink
Browse files

flush() after the type builtin prints its output.

Without this change, debootstrap stops with an error.  With this change,
it completes successfully and I'm able to chroot into the result and run
commands!

Addresses issue #62.
  • Loading branch information...
Andy Chu
Andy Chu committed Jan 13, 2018
1 parent 400a222 commit 27987eaac79fb32c2700abd13d6e7cb6f5fe0331
Showing with 3 additions and 0 deletions.
  1. +3 −0 core/builtin.py
View
@@ -964,6 +964,9 @@ def Type(argv, funcs, path_val):
# bash prints the function body, busybox ash doesn't.
pass
# REQUIRED because of Python's buffering. A command sub may give the wrong
# result otherwise.
sys.stdout.flush()
return status

0 comments on commit 27987ea

Please sign in to comment.