GNU bug report logs - #76551
31.0.50; Missing space in minibuffer `sudo' password

Previous Next

Package: emacs;

Reported by: Rudolf Adamkovič <rudolf <at> adamkovic.org>

Date: Tue, 25 Feb 2025 13:44:01 UTC

Severity: minor

Tags: patch

Found in version 31.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 76551 <at> debbugs.gnu.org (full text, mbox):

From: Visuwesh <visuweshm <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Rudolf Adamkovič <rudolf <at> adamkovic.org>,
 76551 <at> debbugs.gnu.org
Subject: Re: bug#76551: 31.0.50; Missing space in minibuffer `sudo' password
Date: Wed, 26 Feb 2025 18:53:22 +0530
[புதன் பிப்ரவரி 26, 2025] Eli Zaretskii wrote:

>> From: Rudolf Adamkovič <rudolf <at> adamkovic.org>
>> 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?

The prompt is from `sudo'.  comint-watch-for-password-prompt, which is
in comint-output-filter-functions, turns the password prompt in
*testing* buffer to read-passwd call.

But I cannot reproduce it here since sudo's prompt is different here:

sudo echo 1
[sudo] password for viz: 

where there's a space after "viz:".




This bug report was last modified 70 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.