bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bizarre trap behavior while reading a file


From: Mart Frauenlob
Subject: Re: bizarre trap behavior while reading a file
Date: Tue, 29 Mar 2011 08:33:15 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9

On 28.03.2011 18:03, tytus64 wrote:


[...]


trap "" HUP; cat $log_file | {
     while read line
[...]

useless use of cat!

while read ... < file

no need for a subshell actually (introducted by the pipe).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]