Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jun 2015 16:43:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 201167] units(1) corrupts terminal when run via $()
Message-ID:  <bug-201167-8-6YVTmTfFAg@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-201167-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-201167-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201167

--- Comment #1 from commit-hook@freebsd.org ---
A commit references this bug:

Author: jmmv
Date: Sun Jun 28 16:43:08 UTC 2015
New revision: 284912
URL: https://svnweb.freebsd.org/changeset/base/284912

Log:
  Only initialize libedit when necessary

  The code path to support units conversions from the command line
  need not initialize neither libedit nor the history.  Therefore, only do
  that when in interactive mode.

  This hides the issue reported in PR bin/201167 whereby running commands
  of the form 'echo "$(units ft in)"' would corrupt the terminal.  The real
  issue causing the corruption most likely still remains somewhere.

  PR:        bin/201167
  Differential Revision:    D2935
  Reviewed by:    eadler

Changes:
  head/usr.bin/units/units.c

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201167-8-6YVTmTfFAg>