Coprocess terminated, pipe closed before I read the data out

2016-04-12 Thread George
Configuration Information Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H   -I.  -I.

Memory leak in hc_erasedups

2016-04-12 Thread Seiichi Ishitsuka
Hi all, I found memory leak in case of using "HISTCONTOL=erasedups" in bash-4.2. - bash version CentOS7: bash-4.2.45-5.el7_0.4.x86_64 $ echo $BASH_VERSION 4.2.45(1)-release - How to reproduce memory leak 1. add ~/.bashrc export HISTCONTROL=erasedups export HISTSIZE=10 export P

bash "while do echo" can't function correctly

2016-04-12 Thread 何建军
Hi, I use a very simple statement "cat test.txt | while read line; do echo $line; done", test.txt is very small, no more than 100 lines. but the execution of the statement paused during process. test.txt is pasted on http://paste.bradleygill.com/index.php?paste_id=1647399 desmond.he@xgimi-dev

Re: bash "while do echo" can't function correctly

2016-04-12 Thread Geir Hauge
On Wed, Apr 13, 2016 at 10:01:23AM +0800, 何建军 wrote: > Hi, I use a very simple statement "cat test.txt | while read line; do echo > $line; done", test.txt is very small, no more than 100 lines. but the > execution of the statement paused during process. test.txt is pasted on > http://paste.bra