Subject: bug#76551: 31.0.50; Missing space in minibuffer `sudo' password

From: Eli Zaretskii <[email-masked]>
Date: Wed, 26 Feb 2025 14:59:19 +0200

> From: Rudolf Adamkovič <[email-masked]>
> Date: Tue, 25 Feb 2025 14:43:02 +0100
> 
> 
> DESCRIPTION:
> 
>   In Emacs,
> 
>     minibuffer prompts are always suffixed with the space character,
> 
>   for example:
>   
>     Find file: ~/...
>               |
>               +------------ space
>   
>   but this is not the case with `sudo':
>   
>     Password:******
>              |
>              +------------- missing space
> 
> REPRODUCTION STEPS:
> 
>   1. Launch `emacs -Q'.
>   2. Evaluate the following sexp:
>   
>      (let ((buffer-name "*testing*"))
>        (let ((compilation-buffer-name-function (lambda (mode) buffer-name)))
>          (compile "sudo echo 1" t)))
> 
> EXPECTED RESULT:
> 
>   Emacs prompts the user in the minibuffer with "Password: ".
> 
> ACTUAL RESULT:
> 
>   Emacs prompts the user in the minibuffer with "Password:".

Does this prompt come from Emacs or from 'sudo'?  If from Emacs, can
you tell where is the prompt produced?