On Mon, 25 Feb 2002, Paul Lussier wrote:
> I believe that wben you use -e, you're exec'ing the process and thereby
> *replacing* any shell that may have existed beforehand.  It would be the
> same as if you did:
> 
>       gnome-terminal 'bash'
>       exec pine

  Yah, okay, so how do I get it to *not* do that?  I already know it don't
work.  :-)  I figured either the shell was being replaced, or just not
turning on job control.  What I want to do is *change* that.

  Okay, looking at "ps axf" (love that command, should have through to use
it before now), "sh -c" also appears to exec() without fork(), so that does
not help.

  To rephrase my original question more precisely: How do I spawn a new
shell, with job control, and have that shell run an external program,
without replacing the shell?  What do I have to do, run it though 'expect'
and have that type "pine" for me?  :-)  There has got to be a better way.

>> The problem is, when I hit [CTRL]+[Z] in any of these windows, the
>> foreground process suspends, but I do not get a shell prompt.  The 
>> process just hangs, and I basically have to nuke the window.
> 
> I'm surprised it even suspends.  CtrlZ is a shell interupt, isn't it?  If
> there's no shell to interupt, the you shouldn't have anything happen!

  Er, damn, yah, I explained that wrong.  I *should* have said, "[CTRL]+[Z]
does not work as I expect".  Most things actually do appear to just get a ^Z
character on input.  A few things appear to trap [CTRL]+[Z] and do things
before trying to suspend, causing a real problem.  Pine is the notable one,
and the one which usually burns me, so that is why I was focused on it.

>  For example, when I do:
> 
>       xterm -e vi
> 
> Then try and hit CtrlZ, nothing happens at all!

  Mine beeps.  ;-)

-- 
Ben Scott <[EMAIL PROTECTED]>
| The opinions expressed in this message are those of the author and do not |
| necessarily represent the views or policy of any other person, entity or  |
| organization.  All information is provided without warranty of any kind.  |


*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************

Reply via email to