bug-bash
[Top][All Lists]
Advanced

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

Re: Why does a Bash shell script write prompts followed by reads and do


From: Bob Proulx
Subject: Re: Why does a Bash shell script write prompts followed by reads and do it right?
Date: Wed, 2 Sep 2015 14:22:59 -0600
User-agent: Mutt/1.5.23 (2014-03-12)

Robert Parker wrote:
>         fputs(shortprompt, stdout);
>         fflush(stdin);

Uhm...  fflush'ing stdin?  That doesn't make sense.  Obviously you
meant to flush stdout.

        fputs(shortprompt, stdout);
        fflush(stdout);

That is likely the specific problem.  Unfortunately I have no time for
comments about the rest of the code.

Bob



reply via email to

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