On 2/22/17 2:33 AM, ZhangXiao wrote: > Hi Chet and experts, > > Build in command "read" with "-e" option causes memory leak. Can be > reproduced with below script and lots of input data. > > $cat script.sh > #!/bin/bash/bash > while [ 1 ]; > do > read -e data; > echo $data; > done > $./script.sh > > > The patch at the end of this mail can fix it.
Thanks for the report and fix. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/