[Bug 201167] units(1) corrupts terminal when run via $()

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jul 12 11:12:12 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201167

Jilles Tjoelker <jilles at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jilles at FreeBSD.org

--- Comment #4 from Jilles Tjoelker <jilles at FreeBSD.org> ---
The corruption is because units does not shut down libedit via el_end(). The
el_end() call is dead code, since the loop exits via exit(), not break.

Other issues: the (inhistory == 0) check is dead code since it has already
crashed before that point; it should be moved directly after the history_init()
call. Also, the history_end() call should probably be after the el_end() call,
not before.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list