Re: Problem with reading file and executing other stuffs?

2007-11-12 Thread Horinius
Hugh Sasse wrote: > > OK, if it is in fields, like /etc/passwd, then awk is probably more > suited to this problem than reading it directly with shell script. > > If it has some delimited keyword, but each line has variable structure, > then you'd be better using sed. > The files contain some

Re: Problem with reading file and executing other stuffs?

2007-11-12 Thread Hugh Sasse
On Mon, 12 Nov 2007, Horinius wrote: > > > Hugh Sasse wrote: > > > > OK, if it is in fields, like /etc/passwd, then awk is probably more > > suited to this problem than reading it directly with shell script. > > > > If it has some delimited keyword, but each line has variable structure, > > th

SIGTTOU handling

2007-11-12 Thread cerise
Hi: I'm having some trouble with bash -- it doesn't seem to be a problem with bash, but rather in my understanding of how job control works. This seemed like a pretty good place to start looking for the sort of help I need on this. At present, I'm writing what I call a terminal repeater. It allo

Re: SIGTTOU handling

2007-11-12 Thread Derek Fawcus
On Sun, Nov 11, 2007 at 09:56:11PM -0800, [EMAIL PROTECTED] wrote: > Can someone provide a hint to this end? My deepest > thanks for your time and any advice you might be > able to provide. I get exactly that behaviour with a program I have been working on. I traced it to the fact that I ran bas

Re: SIGTTOU handling

2007-11-12 Thread Derek Fawcus
On Mon, Nov 12, 2007 at 08:03:38PM +, Derek Fawcus wrote: > On Sun, Nov 11, 2007 at 09:56:11PM -0800, [EMAIL PROTECTED] wrote: > > Can someone provide a hint to this end? My deepest > > thanks for your time and any advice you might be > > able to provide. > > I get exactly that behaviour with

Re: SIGTTOU handling

2007-11-12 Thread Derek Fawcus
On Sun, Nov 11, 2007 at 09:56:11PM -0800, [EMAIL PROTECTED] wrote: > > I had some difficulties getting job control working at > first. I found that having the child process do a > setpgrp() before forking to the bash instance made the > error message about disabling job control go away. Try set

Re: memory leak in read builtin

2007-11-12 Thread Chet Ramey
> > That code is quite different in bash-3.2, and the memory leak is gone. > > Definitely neither. Oh, there's no question there's a leak. It just doesn't appear to have any consequences on my systems. It will get fixed. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

Re: SIGTTOU handling

2007-11-12 Thread cerise
Hi Derek: Thanks for the input. I know that stderr is duplicated, so that's not a problem. I long suspected terminal problems, but I know that openpty is setting the term correctly from when I was mucking around with whether or not I wanted the terminal running in canonical mode. I changed ou