Re: K&R2 exercise question

From: Alan Balmer (albalmer_at_att.net)
Date: 07/06/04


Date: Tue, 06 Jul 2004 11:49:04 -0700

On Mon, 05 Jul 2004 19:15:43 -0700, Chris Readle <c.readle@cox.net>
wrote:

>I have done some further research on this, and I have discovered that if
>I start a new instance of the shell, it runs just dandy the first time,
>but subsequent runs return to the prompt without allowing any input.
>
>From the viewpoint of comp.lang.c, you program is fine ;-) So, the
problem must be something in your environment. You might want to post
the question on a newsgroup which deals with whatever implementation
you're working with. <OT> How does your implementation define end of
file on your stdin (the terminal, I presume)? Is something causing an
EOF to be in the input buffer after the first execution? gdb is
probably starting a brand-new shell for each execution.

-- 
Al Balmer
Balmer Consulting
removebalmerconsultingthis@att.net


Relevant Pages

  • Re: Pyrotechnics Guild International - Fireworks Convention Appleton, WI
    ... '88' was for sure the first time Larry brought the rockets. ... nasty, damp locker rooms still smelled like nasty, damp locker rooms. ... Anytime a sizable salute or large shell would explode, ... I recall the convention hotel in Oil City, ...
    (rec.pyrotechnics)
  • Re: Exiting from python shell
    ... remember a time that I typed the ^D the first time. ... been so awful to just let it be a way to exit when the shell? ... to exit python via a keyword would require also reformulating mathematics as we know it. ...
    (comp.lang.python)
  • Re: Exiting from python shell
    ... remember a time that I typed the ^D the first time. ... been so awful to just let it be a way to exit when the shell? ... to exit python via a keyword would require also reformulating mathematics as we know it. ...
    (comp.lang.python)
  • Re: runas
    ... > You add the switch to the shortcut target. ... > The first time you run it, ... my batch below kicks on a command line ... >> REM start command line shell as local admin ...
    (microsoft.public.windowsxp.general)