bug-bash
[Top][All Lists]
Advanced

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

Re: A stray putchar() in select (execute_cmd.c)


From: Chet Ramey
Subject: Re: A stray putchar() in select (execute_cmd.c)
Date: Wed, 22 Oct 2025 16:49:28 -0400
User-agent: Mozilla Thunderbird

On 10/18/25 7:01 AM, Stan Marsh wrote:

Line 3468 of execute_cmd.c is: putchar('\n');
The purpose of this line is to emit a newline when the user hits ^D at
the 'select' prompt (#?).  If this line were not present, the cursor
would stay on the same line as the #? prompt, which would be unsightly.

However, I think this should be (f)putc('\n',stderr);

Thanks for the report.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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