Re: A possible bug with 4.2 (latest)

2011-03-29 Thread George Goffe
Chet, I'll do that right now. Thanks for the QUICK response. George... On Tue, Mar 29, 2011 at 11:19 AM, Chet Ramey wrote: > On 3/29/11 2:09 PM, George Goffe wrote: > > Howdy, > > > > I am experiencing a problem with sourcing a file. It's really my bashrc > but > > I want to keep the corporat

Re: A possible bug with 4.2 (latest)

2011-03-29 Thread Chet Ramey
On 3/29/11 2:09 PM, George Goffe wrote: > Howdy, > > I am experiencing a problem with sourcing a file. It's really my bashrc but > I want to keep the corporate version separate. > > What I'm seeing: > > 1) make a change to .grgrc > 2) enter . .grgrc > 3) usually use the changed "code". > > This

A possible bug with 4.2 (latest)

2011-03-29 Thread George Goffe
Howdy, I am experiencing a problem with sourcing a file. It's really my bashrc but I want to keep the corporate version separate. What I'm seeing: 1) make a change to .grgrc 2) enter . .grgrc 3) usually use the changed "code". This change is not appearing. My .grgrc is almost 3000 lines of code

Re: bizarre trap behavior while reading a file

2011-03-29 Thread tytus64
Chet Ramey wrote: > > You might have better luck moving the trap command inside the { ... }, > before the while loop. > Yes. I realized that after a bit of testing :). Thanks -- View this message in context: http://old.nabble.com/bizarre-trap-behavior-while-reading-a-file-tp31242064p31267546

Re: bizarre trap behavior while reading a file

2011-03-29 Thread Greg Wooledge
On Tue, Mar 29, 2011 at 08:02:17AM -0400, Steven W. Orr wrote: > Is there a difference between > > while read line < file > do > stuff > done > > vs > > while read line > do > stuff > done < file Yes. It's a huge difference. In the first one, the file is re-opened by read every time t

Re: bizarre trap behavior while reading a file

2011-03-29 Thread Steven W. Orr
On 3/29/2011 2:33 AM, Mart Frauenlob wrote: 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). I'm a big opponent of useless cats, but I ha