sysutils/tmux - strange behaviour with new version 2.4

Miroslav Lachman 000.fbsd at quip.cz
Tue May 16 11:24:47 UTC 2017


DutchDaemon - FreeBSD Forums Administrator wrote on 2017/05/15 19:32:
> On 15-5-2017 19:18, Miroslav Lachman wrote:
>> I noticed some strange behaviours with Tmux 2.4.
>> If I run "cat /path/to/somefile.txt" sometimes part of file is missing
>> in the output (no special characters in this text file, it is log of
>> "pkg upgrade")
>>
>> And I thing some key presses are interpreted differently. (in Vim)
>>
>> I know that nobody can solve this without more details... so I am just
>> asking if I am alone or somebody else have this problem too?
>>
>> Miroslav Lachman
>
> You're ringing a bell. I wanted to mail someone the content of a shell
> script, which I printed in tmux using `cat`. When I pasted the output in
> my mail program it seemed to be missing a block of text, which was
> commented out in the script. So there may be some unwanted interaction
> going on with lines starting with #, perhaps?

The problem is not just the hash character but maybe some "keywords".

This output does not have any hash character but almost half of the 
output is missing:

1) inside tmux session (notice one empty line and one line with "dat"

# pkg query "%o %a" | sort -k 2
archivers/php56-bz2 0
archivers/php56-phar 0
archivers/php56-zip 0
archivers/php56-zlib 0
archivers/unzip 0
benchmarks/ubench 0
converters/php56-iconv 0
converters/php56-mbstring 0
converters/wkhtmltopdf 0
databases/freetds 0
databases/innotop 0
databases/mariadb101-server 0
databases/memcached 0
databases/mytop 0
databases/pecl-memcached2 0
databases/php56-mssql 0
databases/php56-mysql 0
databases/php56-mysqli 0
databases/php56-pdo 0
databases/php56-pdo_dblib 0
databases/php56-pdo_mysql 0
databases/php56-pdo_sqlite 0
databases/php56-pgsql 0
databases/php56-sqlite3 0
databases/proftpd-mod_sql_mysql 0

sysutils/whowatch 0
textproc/elasticsearch5 0
textproc/elasticsearch5-x-pack 0
textproc/kibana5 0
textproc/kibana5-x-pack 0
textproc/pear-Spreadsheet_Excel_Writer 0
textproc/php56-ctype 0
textproc/php56-dom 0
textproc/php56-simplexml 0
textproc/php56-xml 0
textproc/php56-xmlreader 0
textproc/php56-xmlwriter 0
textproc/php56-xsl 0
www/apache24 0
www/awstats 0
www/mod_php56 0
www/mod_proctitle 0
www/npm 0
www/php56-opcache 0
www/php56-session 0
x11-fonts/webfonts 0
archivers/libarchive 1
archivers/liblz4 1
archivers/libmspack 1
archivers/libzip 1
archivers/lzo2 1
audio/alsa-lib 1
audio/gsm 1
audio/lame 1
audio/libogg 1
audio/libvorbis 1
audio/opencore-amr 1
converters/libiconv 1
databases/db5 1
databases/ldb 1
databases/libmemcached 1
dat
net/libdnet 1
net/openldap24-client 1
net/p5-Geo-IP 1
net/p5-IO-Socket-INET6 1
net/p5-Net-XWhois 1
net/p5-Socket6 1
print/freetype2 1
print/indexinfo 1
security/apache-xml-security-c 1
security/ca_root_nss 1
security/easy-rsa 1
security/gnutls 1
security/libgcrypt 1
security/libgpg-error 1
security/libmcrypt 1
security/libtasn1 1
security/nettle 1
security/openssl 1
security/p5-Digest-HMAC 1
sysutils/fusefs-libs 1
sysutils/libsunacl 1
textproc/expat2 1
textproc/libxml2 1
textproc/libxslt 1
textproc/xerces-c3 1
www/node 1
www/serf 1
x11-fonts/dejavu 1
x11-fonts/fontconfig 1
x11-fonts/libfontenc 1
x11-fonts/mkfontdir 1
x11-fonts/mkfontscale 1
x11/kbproto 1
x11/libX11 1
x11/libXau 1
x11/libXdmcp 1
x11/libXext 1
x11/libXrender 1
x11/libxcb 1
x11/renderproto 1
x11/xextproto 1
x11/xproto 1



2) full correct output without tmux

# pkg query "%o %a" | sort -k 2
archivers/php56-bz2 0
archivers/php56-phar 0
archivers/php56-zip 0
archivers/php56-zlib 0
archivers/unzip 0
benchmarks/ubench 0
converters/php56-iconv 0
converters/php56-mbstring 0
converters/wkhtmltopdf 0
databases/freetds 0
databases/innotop 0
databases/mariadb101-server 0
databases/memcached 0
databases/mytop 0
databases/pecl-memcached2 0
databases/php56-mssql 0
databases/php56-mysql 0
databases/php56-mysqli 0
databases/php56-pdo 0
databases/php56-pdo_dblib 0
databases/php56-pdo_mysql 0
databases/php56-pdo_sqlite 0
databases/php56-pgsql 0
databases/php56-sqlite3 0
databases/proftpd-mod_sql_mysql 0
devel/git 0
devel/pear-OLE 0
devel/php-composer 0
devel/php56-json 0
devel/php56-tokenizer 0
devel/subversion 0
dns/fastresolve 0
dns/pear-Net_DNS 0
editors/vim-lite 0
emulators/open-vm-tools-nox11 0
ftp/curl 0
ftp/php56-curl 0
ftp/php56-ftp 0
ftp/proftpd 0
ftp/wget 0
graphics/ImageMagick-nox11 0
graphics/php56-exif 0
graphics/php56-gd 0
lang/php56 0
mail/php56-imap 0
mail/postfix 0
math/php56-bcmath 0
math/pspp 0
misc/mc 0
misc/php56-calendar 0
multimedia/ffmpeg 0
net-mgmt/iftop 0
net-mgmt/mrtg 0
net/ifstat 0
net/p5-URI 0
net/pear-Net_IDNA 0
net/php56-ldap 0
net/php56-soap 0
net/php56-sockets 0
net/rsync 0
net/samba44 0
net/tableutil 0
ports-mgmt/pkg 0
security/expiretable 0
security/openvpn 0
security/php56-filter 0
security/php56-hash 0
security/php56-mcrypt 0
security/php56-openssl 0
security/sudo 0
shells/bash 0
sysutils/ansible-client 0
sysutils/ccze 0
sysutils/dmidecode 0
sysutils/pftop 0
sysutils/php56-fileinfo 0
sysutils/php56-posix 0
sysutils/pstree 0
sysutils/screen 0
sysutils/tmux 0
sysutils/whowatch 0
textproc/elasticsearch5 0
textproc/elasticsearch5-x-pack 0
textproc/kibana5 0
textproc/kibana5-x-pack 0
textproc/pear-Spreadsheet_Excel_Writer 0
textproc/php56-ctype 0
textproc/php56-dom 0
textproc/php56-simplexml 0
textproc/php56-xml 0
textproc/php56-xmlreader 0
textproc/php56-xmlwriter 0
textproc/php56-xsl 0
www/apache24 0
www/awstats 0
www/mod_php56 0
www/mod_proctitle 0
www/npm 0
www/php56-opcache 0
www/php56-session 0
x11-fonts/webfonts 0
archivers/libarchive 1
archivers/liblz4 1
archivers/libmspack 1
archivers/libzip 1
archivers/lzo2 1
audio/alsa-lib 1
audio/gsm 1
audio/lame 1
audio/libogg 1
audio/libvorbis 1
audio/opencore-amr 1
converters/libiconv 1
databases/db5 1
databases/ldb 1
databases/libmemcached 1
databases/mariadb101-client 1
databases/p5-BerkeleyDB 1
databases/p5-DBD-mysql 1
databases/p5-DBI 1
databases/postgresql94-client 1
databases/sqlite3 1
databases/tdb 1
databases/unixODBC 1
devel/apr1 1
devel/gettext-runtime 1
devel/glib20 1
devel/gmake 1
devel/icu 1
devel/libevent 1
devel/libffi 1
devel/libinotify 1
devel/libltdl 1
devel/libpthread-stubs 1
devel/libunistring 1
devel/libuv 1
devel/oniguruma5 1
devel/orc 1
devel/p5-Term-ReadKey 1
devel/p5-subversion 1
devel/pcre 1
devel/pear 1
devel/pecl-intl 1
devel/pkgconf 1
devel/popt 1
devel/py-iso8601 1
devel/py27-setuptools 1
devel/t1lib 1
devel/talloc 1
devel/tevent 1
dns/adns 1
dns/c-ares 1
dns/libidn2 1
dns/p5-Net-DNS 1
dns/py-dnspython 1
graphics/gd 1
graphics/jbigkit 1
graphics/jpeg-turbo 1
graphics/lcms2 1
graphics/opencv-core 1
graphics/openjpeg 1
graphics/png 1
graphics/tiff 1
java/java-zoneinfo 1
java/javavmwrapper 1
java/openjdk8 1
lang/p5-Error 1
lang/perl5.24 1
lang/python2 1
lang/python27 1
mail/cclient 1
math/gmp 1
math/gsl 1
multimedia/libtheora 1
multimedia/libvpx 1
multimedia/libx264 1
multimedia/schroedinger 1
multimedia/xvid 1
net-mgmt/p5-Net-IP 1
net-mgmt/p5-SNMP_Session 1
net/GeoIP 1
net/libdnet 1
net/openldap24-client 1
net/p5-Geo-IP 1
net/p5-IO-Socket-INET6 1
net/p5-Net-XWhois 1
net/p5-Socket6 1
print/freetype2 1
print/indexinfo 1
security/apache-xml-security-c 1
security/ca_root_nss 1
security/easy-rsa 1
security/gnutls 1
security/libgcrypt 1
security/libgpg-error 1
security/libmcrypt 1
security/libtasn1 1
security/nettle 1
security/openssl 1
security/p5-Digest-HMAC 1
sysutils/fusefs-libs 1
sysutils/libsunacl 1
textproc/expat2 1
textproc/libxml2 1
textproc/libxslt 1
textproc/xerces-c3 1
www/node 1
www/serf 1
x11-fonts/dejavu 1
x11-fonts/fontconfig 1
x11-fonts/libfontenc 1
x11-fonts/mkfontdir 1
x11-fonts/mkfontscale 1
x11/kbproto 1
x11/libX11 1
x11/libXau 1
x11/libXdmcp 1
x11/libXext 1
x11/libXrender 1
x11/libxcb 1
x11/renderproto 1
x11/xextproto 1
x11/xproto 1



So first missing block starts with "devel/git 0" and the second block 
starts with "databases/mariadb101-client 1" where only "dat" was displayed.

Very strange behaviour.

Miroslav Lachman


More information about the freebsd-ports mailing list