freebsd-dev/usr.bin
Julio Merino 619e4f78fe 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
2015-06-28 16:43:07 +00:00
..
addr2line new depends 2015-06-16 23:37:19 +00:00
alias Add META_MODE support. 2015-06-13 19:20:56 +00:00
apply Add META_MODE support. 2015-06-13 19:20:56 +00:00
ar new depends 2015-06-16 23:37:19 +00:00
asa Add META_MODE support. 2015-06-13 19:20:56 +00:00
at Add META_MODE support. 2015-06-13 19:20:56 +00:00
atm Add META_MODE support. 2015-06-13 19:20:56 +00:00
awk Add META_MODE support. 2015-06-13 19:20:56 +00:00
banner Add META_MODE support. 2015-06-13 19:20:56 +00:00
basename Add META_MODE support. 2015-06-13 19:20:56 +00:00
bc Add META_MODE support. 2015-06-13 19:20:56 +00:00
biff Add META_MODE support. 2015-06-13 19:20:56 +00:00
bluetooth Add META_MODE support. 2015-06-13 19:20:56 +00:00
bmake new depends 2015-06-16 23:37:19 +00:00
brandelf Add META_MODE support. 2015-06-13 19:20:56 +00:00
bsdiff Add META_MODE support. 2015-06-13 19:20:56 +00:00
bzip2 Add META_MODE support. 2015-06-13 19:20:56 +00:00
bzip2recover Add META_MODE support. 2015-06-13 19:20:56 +00:00
c89 Add META_MODE support. 2015-06-13 19:20:56 +00:00
c99 Add META_MODE support. 2015-06-13 19:20:56 +00:00
calendar - Add acm@ entry 2015-06-17 02:43:20 +00:00
cap_mkdb Add META_MODE support. 2015-06-13 19:20:56 +00:00
catman Add META_MODE support. 2015-06-13 19:20:56 +00:00
chat Add META_MODE support. 2015-06-13 19:20:56 +00:00
checknr Add META_MODE support. 2015-06-13 19:20:56 +00:00
chkey Add META_MODE support. 2015-06-13 19:20:56 +00:00
chpass Add META_MODE support. 2015-06-13 19:20:56 +00:00
cksum Add META_MODE support. 2015-06-13 19:20:56 +00:00
clang new depends 2015-06-16 23:37:19 +00:00
cmp Add META_MODE support. 2015-06-13 19:20:56 +00:00
col Add META_MODE support. 2015-06-13 19:20:56 +00:00
colcrt Add META_MODE support. 2015-06-13 19:20:56 +00:00
colldef new depends 2015-06-16 23:37:19 +00:00
colrm Add META_MODE support. 2015-06-13 19:20:56 +00:00
column Add META_MODE support. 2015-06-13 19:20:56 +00:00
comm Add META_MODE support. 2015-06-13 19:20:56 +00:00
compile_et Add META_MODE support. 2015-06-13 19:20:56 +00:00
compress Add META_MODE support. 2015-06-13 19:20:56 +00:00
cpio Add META_MODE support. 2015-06-13 19:20:56 +00:00
cpuset Add META_MODE support. 2015-06-13 19:20:56 +00:00
csplit Add META_MODE support. 2015-06-13 19:20:56 +00:00
ctags Add META_MODE support. 2015-06-13 19:20:56 +00:00
ctlstat Add META_MODE support. 2015-06-13 19:20:56 +00:00
cut Add META_MODE support. 2015-06-13 19:20:56 +00:00
cxxfilt Actually add c++filt's Makefile 2015-04-30 22:51:15 +00:00
dc Add META_MODE support. 2015-06-13 19:20:56 +00:00
dirname Add META_MODE support. 2015-06-13 19:20:56 +00:00
dpv mdoc: sort SEE ALSO. 2014-12-26 21:56:23 +00:00
drill Convert to usr.bin/ to LIBADD 2014-11-25 14:29:10 +00:00
dtc
du Add META_MODE support. 2015-06-13 19:20:56 +00:00
ee new depends 2015-06-16 23:37:19 +00:00
elf2aout Add META_MODE support. 2015-06-13 19:20:56 +00:00
elfcopy new depends 2015-06-16 23:37:19 +00:00
elfdump Add META_MODE support. 2015-06-13 19:20:56 +00:00
enigma Add META_MODE support. 2015-06-13 19:20:56 +00:00
env Add META_MODE support. 2015-06-13 19:20:56 +00:00
expand Add META_MODE support. 2015-06-13 19:20:56 +00:00
false Add META_MODE support. 2015-06-13 19:20:56 +00:00
fetch Add META_MODE support. 2015-06-13 19:20:56 +00:00
file Add META_MODE support. 2015-06-13 19:20:56 +00:00
file2c Add META_MODE support. 2015-06-13 19:20:56 +00:00
find new depends 2015-06-16 23:37:19 +00:00
finger Add META_MODE support. 2015-06-13 19:20:56 +00:00
fmt Add META_MODE support. 2015-06-13 19:20:56 +00:00
fold Add META_MODE support. 2015-06-13 19:20:56 +00:00
from Add META_MODE support. 2015-06-13 19:20:56 +00:00
fstat Add META_MODE support. 2015-06-13 19:20:56 +00:00
fsync Add META_MODE support. 2015-06-13 19:20:56 +00:00
ftp Add META_MODE support. 2015-06-13 19:20:56 +00:00
gcore Add META_MODE support. 2015-06-13 19:20:56 +00:00
gencat Add META_MODE support. 2015-06-13 19:20:56 +00:00
getconf new depends 2015-06-16 23:37:19 +00:00
getent Add META_MODE support. 2015-06-13 19:20:56 +00:00
getopt Add META_MODE support. 2015-06-13 19:20:56 +00:00
gprof Add META_MODE support. 2015-06-13 19:20:56 +00:00
grep new depends 2015-06-16 23:37:19 +00:00
gzip Add META_MODE support. 2015-06-13 19:20:56 +00:00
head Add META_MODE support. 2015-06-13 19:20:56 +00:00
hesinfo
hexdump Add META_MODE support. 2015-06-13 19:20:56 +00:00
host Add META_MODE support. 2015-06-13 19:20:56 +00:00
iconv Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
id Add META_MODE support. 2015-06-13 19:20:56 +00:00
indent Add META_MODE support. 2015-06-13 19:20:56 +00:00
ipcrm Add META_MODE support. 2015-06-13 19:20:56 +00:00
ipcs Add META_MODE support. 2015-06-13 19:20:56 +00:00
iscsictl Add libxo(3) support to iscsictl(8). 2015-04-12 09:36:50 +00:00
join Add META_MODE support. 2015-06-13 19:20:56 +00:00
jot Add META_MODE support. 2015-06-13 19:20:56 +00:00
kdump new depends 2015-06-16 23:37:19 +00:00
keylogin Add META_MODE support. 2015-06-13 19:20:56 +00:00
keylogout Add META_MODE support. 2015-06-13 19:20:56 +00:00
killall Add META_MODE support. 2015-06-13 19:20:56 +00:00
ktrace Add META_MODE support. 2015-06-13 19:20:56 +00:00
ktrdump Add META_MODE support. 2015-06-13 19:20:56 +00:00
lam Add META_MODE support. 2015-06-13 19:20:56 +00:00
last Add META_MODE support. 2015-06-13 19:20:56 +00:00
lastcomm Add META_MODE support. 2015-06-13 19:20:56 +00:00
ldd Add META_MODE support. 2015-06-13 19:20:56 +00:00
leave Add META_MODE support. 2015-06-13 19:20:56 +00:00
less new depends 2015-06-16 23:37:19 +00:00
lessecho new depends 2015-06-16 23:37:19 +00:00
lesskey new depends 2015-06-16 23:37:19 +00:00
lex Add META_MODE support. 2015-06-13 19:20:56 +00:00
limits Add META_MODE support. 2015-06-13 19:20:56 +00:00
locale Add META_MODE support. 2015-06-13 19:20:56 +00:00
locate Add META_MODE support. 2015-06-13 19:20:56 +00:00
lock Add META_MODE support. 2015-06-13 19:20:56 +00:00
lockf Add META_MODE support. 2015-06-13 19:20:56 +00:00
logger Add META_MODE support. 2015-06-13 19:20:56 +00:00
login Add META_MODE support. 2015-06-13 19:20:56 +00:00
logins Add META_MODE support. 2015-06-13 19:20:56 +00:00
logname Add META_MODE support. 2015-06-13 19:20:56 +00:00
look Add META_MODE support. 2015-06-13 19:20:56 +00:00
lorder Add META_MODE support. 2015-06-13 19:20:56 +00:00
lsvfs Add META_MODE support. 2015-06-13 19:20:56 +00:00
lzmainfo Add META_MODE support. 2015-06-13 19:20:56 +00:00
m4 Add META_MODE support. 2015-06-13 19:20:56 +00:00
mail Add META_MODE support. 2015-06-13 19:20:56 +00:00
makewhatis Add META_MODE support. 2015-06-13 19:20:56 +00:00
man Add META_MODE support. 2015-06-13 19:20:56 +00:00
mandoc new depends 2015-06-16 23:37:19 +00:00
mesg Add META_MODE support. 2015-06-13 19:20:56 +00:00
minigzip Add META_MODE support. 2015-06-13 19:20:56 +00:00
ministat Add META_MODE support. 2015-06-13 19:20:56 +00:00
mkcsmapper mdoc: sort SEE ALSO. 2014-12-26 21:56:23 +00:00
mkcsmapper_static NO_WARNS when building for host 2015-06-14 03:34:09 +00:00
mkdep Add META_MODE support. 2015-06-13 19:20:56 +00:00
mkesdb mdoc: sort SEE ALSO. 2014-12-26 21:56:23 +00:00
mkesdb_static NO_WARNS when building for host 2015-06-14 03:34:09 +00:00
mkfifo Add META_MODE support. 2015-06-13 19:20:56 +00:00
mkimg Add the ntfs alias and support it with the MBR and GPT schemes 2015-06-27 03:28:04 +00:00
mklocale new depends 2015-06-16 23:37:19 +00:00
mkstr Add META_MODE support. 2015-06-13 19:20:56 +00:00
mktemp Add META_MODE support. 2015-06-13 19:20:56 +00:00
mkulzma Add META_MODE support. 2015-06-13 19:20:56 +00:00
mkuzip Add META_MODE support. 2015-06-13 19:20:56 +00:00
msgs Add META_MODE support. 2015-06-13 19:20:56 +00:00
mt Add META_MODE support. 2015-06-13 19:20:56 +00:00
nc Add META_MODE support. 2015-06-13 19:20:56 +00:00
ncal Add META_MODE support. 2015-06-13 19:20:56 +00:00
netstat Add META_MODE support. 2015-06-13 19:20:56 +00:00
newgrp Add META_MODE support. 2015-06-13 19:20:56 +00:00
newkey Add META_MODE support. 2015-06-13 19:20:56 +00:00
nfsstat Add META_MODE support. 2015-06-13 19:20:56 +00:00
nice Add META_MODE support. 2015-06-13 19:20:56 +00:00
nl Add META_MODE support. 2015-06-13 19:20:56 +00:00
nm new depends 2015-06-16 23:37:19 +00:00
nohup Add META_MODE support. 2015-06-13 19:20:56 +00:00
opieinfo Add META_MODE support. 2015-06-13 19:20:56 +00:00
opiekey Add META_MODE support. 2015-06-13 19:20:56 +00:00
opiepasswd Add META_MODE support. 2015-06-13 19:20:56 +00:00
pagesize Add META_MODE support. 2015-06-13 19:20:56 +00:00
pamtest Add META_MODE support. 2015-06-13 19:20:56 +00:00
passwd Add META_MODE support. 2015-06-13 19:20:56 +00:00
paste Add META_MODE support. 2015-06-13 19:20:56 +00:00
patch patch(1): small include changes. 2015-04-20 22:15:18 +00:00
pathchk Add META_MODE support. 2015-06-13 19:20:56 +00:00
perror Add META_MODE support. 2015-06-13 19:20:56 +00:00
pr Add META_MODE support. 2015-06-13 19:20:56 +00:00
printenv Add META_MODE support. 2015-06-13 19:20:56 +00:00
printf Add META_MODE support. 2015-06-13 19:20:56 +00:00
procstat Add META_MODE support. 2015-06-13 19:20:56 +00:00
protect Reassign copyright statements on several files from Advanced 2015-04-23 14:22:20 +00:00
quota Add META_MODE support. 2015-06-13 19:20:56 +00:00
rctl Add META_MODE support. 2015-06-13 19:20:56 +00:00
readelf new depends 2015-06-16 23:37:19 +00:00
renice Add META_MODE support. 2015-06-13 19:20:56 +00:00
rev Add META_MODE support. 2015-06-13 19:20:56 +00:00
revoke Add META_MODE support. 2015-06-13 19:20:56 +00:00
rlogin Add META_MODE support. 2015-06-13 19:20:56 +00:00
rpcgen Add META_MODE support. 2015-06-13 19:20:56 +00:00
rpcinfo Add META_MODE support. 2015-06-13 19:20:56 +00:00
rs Add META_MODE support. 2015-06-13 19:20:56 +00:00
rsh Add META_MODE support. 2015-06-13 19:20:56 +00:00
rup Add META_MODE support. 2015-06-13 19:20:56 +00:00
ruptime Add META_MODE support. 2015-06-13 19:20:56 +00:00
rusers Add META_MODE support. 2015-06-13 19:20:56 +00:00
rwall Add META_MODE support. 2015-06-13 19:20:56 +00:00
rwho Add META_MODE support. 2015-06-13 19:20:56 +00:00
script Add META_MODE support. 2015-06-13 19:20:56 +00:00
sed Add META_MODE support. 2015-06-13 19:20:56 +00:00
send-pr
seq Add META_MODE support. 2015-06-13 19:20:56 +00:00
setchannel Add META_MODE support. 2015-06-13 19:20:56 +00:00
shar Add META_MODE support. 2015-06-13 19:20:56 +00:00
showmount Add META_MODE support. 2015-06-13 19:20:56 +00:00
size new depends 2015-06-16 23:37:19 +00:00
smbutil Add META_MODE support. 2015-06-13 19:20:56 +00:00
sockstat - Add SOCK_SEQPACKET support in UNIX-domain socket. 2015-06-20 08:59:50 +00:00
soelim * fix roff terminology in .Nd 2015-05-21 08:28:48 +00:00
sort new depends 2015-06-16 23:37:19 +00:00
split Add META_MODE support. 2015-06-13 19:20:56 +00:00
ssh-copy-id Add META_MODE support. 2015-06-13 19:20:56 +00:00
stat Add META_MODE support. 2015-06-13 19:20:56 +00:00
stdbuf Add META_MODE support. 2015-06-13 19:20:56 +00:00
strings new depends 2015-06-16 23:37:19 +00:00
su Add META_MODE support. 2015-06-13 19:20:56 +00:00
svn Add META_MODE support. 2015-06-13 19:20:56 +00:00
systat Add META_MODE support. 2015-06-13 19:20:56 +00:00
tabs Add META_MODE support. 2015-06-13 19:20:56 +00:00
tail Add META_MODE support. 2015-06-13 19:20:56 +00:00
talk Add META_MODE support. 2015-06-13 19:20:56 +00:00
tar Add META_MODE support. 2015-06-13 19:20:56 +00:00
tcopy Add META_MODE support. 2015-06-13 19:20:56 +00:00
tee Add META_MODE support. 2015-06-13 19:20:56 +00:00
telnet Add META_MODE support. 2015-06-13 19:20:56 +00:00
tests
tftp Add META_MODE support. 2015-06-13 19:20:56 +00:00
time Add META_MODE support. 2015-06-13 19:20:56 +00:00
timeout Add META_MODE support. 2015-06-13 19:20:56 +00:00
tip Add META_MODE support. 2015-06-13 19:20:56 +00:00
top new depends 2015-06-16 23:37:19 +00:00
touch Add META_MODE support. 2015-06-13 19:20:56 +00:00
tput Add META_MODE support. 2015-06-13 19:20:56 +00:00
tr Add META_MODE support. 2015-06-13 19:20:56 +00:00
true Add META_MODE support. 2015-06-13 19:20:56 +00:00
truncate Add META_MODE support. 2015-06-13 19:20:56 +00:00
truss new depends 2015-06-16 23:37:19 +00:00
tset Add META_MODE support. 2015-06-13 19:20:56 +00:00
tsort Add META_MODE support. 2015-06-13 19:20:56 +00:00
tty Add META_MODE support. 2015-06-13 19:20:56 +00:00
ul Add META_MODE support. 2015-06-13 19:20:56 +00:00
uname Add META_MODE support. 2015-06-13 19:20:56 +00:00
unexpand Add META_MODE support. 2015-06-13 19:20:56 +00:00
unifdef Add META_MODE support. 2015-06-13 19:20:56 +00:00
uniq Add META_MODE support. 2015-06-13 19:20:56 +00:00
units Only initialize libedit when necessary 2015-06-28 16:43:07 +00:00
unvis Add META_MODE support. 2015-06-13 19:20:56 +00:00
unzip Add META_MODE support. 2015-06-13 19:20:56 +00:00
usbhidaction Add META_MODE support. 2015-06-13 19:20:56 +00:00
usbhidctl Add META_MODE support. 2015-06-13 19:20:56 +00:00
users Add META_MODE support. 2015-06-13 19:20:56 +00:00
uudecode Add META_MODE support. 2015-06-13 19:20:56 +00:00
uuencode Add META_MODE support. 2015-06-13 19:20:56 +00:00
vacation Add META_MODE support. 2015-06-13 19:20:56 +00:00
vgrind Add META_MODE support. 2015-06-13 19:20:56 +00:00
vi Add META_MODE support. 2015-06-13 19:20:56 +00:00
vis Add META_MODE support. 2015-06-13 19:20:56 +00:00
vmstat Add META_MODE support. 2015-06-13 19:20:56 +00:00
vtfontcvt Add META_MODE support. 2015-06-13 19:20:56 +00:00
w Add META_MODE support. 2015-06-13 19:20:56 +00:00
wall Add META_MODE support. 2015-06-13 19:20:56 +00:00
wc Add META_MODE support. 2015-06-13 19:20:56 +00:00
what Add META_MODE support. 2015-06-13 19:20:56 +00:00
whereis Add META_MODE support. 2015-06-13 19:20:56 +00:00
which Add META_MODE support. 2015-06-13 19:20:56 +00:00
who Add META_MODE support. 2015-06-13 19:20:56 +00:00
whois Add META_MODE support. 2015-06-13 19:20:56 +00:00
write Add META_MODE support. 2015-06-13 19:20:56 +00:00
xargs Add META_MODE support. 2015-06-13 19:20:56 +00:00
xinstall short circuit install -l rs 2015-06-26 23:55:02 +00:00
xlint new depends 2015-06-16 23:37:19 +00:00
xo Convert to usr.bin/ to LIBADD 2014-11-25 14:29:10 +00:00
xstr Add META_MODE support. 2015-06-13 19:20:56 +00:00
xz Add META_MODE support. 2015-06-13 19:20:56 +00:00
xzdec Add META_MODE support. 2015-06-13 19:20:56 +00:00
yacc Add META_MODE support. 2015-06-13 19:20:56 +00:00
yes Add META_MODE support. 2015-06-13 19:20:56 +00:00
ypcat Add META_MODE support. 2015-06-13 19:20:56 +00:00
ypmatch Add META_MODE support. 2015-06-13 19:20:56 +00:00
ypwhich Add META_MODE support. 2015-06-13 19:20:56 +00:00
Makefile Remove old fmake. It wasn't built by default for some time. Users that 2015-06-16 20:58:33 +00:00
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.inc
Makefile.powerpc
Makefile.sparc64