From unknown Sat Jun 21 10:36:07 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#43772 <43772@debbugs.gnu.org> To: bug#43772 <43772@debbugs.gnu.org> Subject: Status: 27.1; (describe-variable) breaks eshell Reply-To: bug#43772 <43772@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:36:07 +0000 retitle 43772 27.1; (describe-variable) breaks eshell reassign 43772 emacs submitter 43772 daniel@codesections.com severity 43772 normal tag 43772 confirmed fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 02 22:11:55 2020 Received: (at submit) by debbugs.gnu.org; 3 Oct 2020 02:11:55 +0000 Received: from localhost ([127.0.0.1]:42774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOX1e-0006tf-Vl for submit@debbugs.gnu.org; Fri, 02 Oct 2020 22:11:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:46314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOX1c-0006tX-HZ for submit@debbugs.gnu.org; Fri, 02 Oct 2020 22:11:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOX1c-0005KL-Bn for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 22:11:52 -0400 Received: from out1.migadu.com ([2001:41d0:2:863f::]:22484) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOX1Z-00079N-PR for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 22:11:52 -0400 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codesections.com; s=default; t=1601691103; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+tgiIfoGjYCEiBSjPdqzD9k+VbrsOufAdgkcuS1SFbM=; b=XO7svr3F0CH/qmT6yswrmtdWssVX4LUJmvclMi6E3FsvZJv1H++/Jqtatw8pHfaK2vsPGJ q7vkzvdVcJT5KpDi1mPBNMWZm7zD3COZJ87ag95UF0JOEUMDGaahwDftFFRKKgiulbsyXg EYvFhlFp3hW103P9rOlVSy/FTlWXGRg= Date: Sat, 03 Oct 2020 02:11:43 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: daniel@codesections.com Message-ID: Subject: 27.1; (describe-variable) breaks eshell To: bug-gnu-emacs@gnu.org X-Spam-Score: -0.10 Received-SPF: pass client-ip=2001:41d0:2:863f::; envelope-from=daniel@codesections.com; helo=out1.migadu.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/02 22:11:44 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) When using eshell-mode, calling `(describe-variable)` on a variable that= =0Astarts with "eshell" causes eshell-watch-for-password-prompt to no=0Al= onger function correctly. In the attached dribble file, I first show=0At= he correct behavior by opening eshell and entering `sudo ls`; eshell=0Aco= rrectly prompts me for a password three times. I then run=0A`(describe-v= ariable 'eshell-after-prompt-hook)` and then enter `sudo=0Als`. This tim= e, eshell displays the incorrect behavior: it prints the=0Astring "passwo= rd" but does not accept input as a password or print any=0Aoutput from th= e command. I selected `eshell-after-prompt-hook` becuase=0Ait is one of = the first variables starting with "eshell", but the same=0Abehavior occur= s with other variables, including user-defined ones.=0A=0AThe information= below, generated with report-emacs-bug, is for my=0Alaptop, where I obse= rved the above bug on Emacs 27.1. I also observed=0Athe same bug on my d= esktop on Emacs 26.3 (build 2, x86_64-pc-linux-gnu),=0Aso the issue isn't= specific to the Void musl build.=0A=0AI hope this information is helpful= . Thank you all for the wonderful=0Awork you do on Emacs, and please let= me know if I can provide any other=0Ainformation.=0A=0ABest regards,=0AD= aniel =0A=0AIn GNU Emacs 27.1 (build 1, x86_64-unknown-linux-musl)=0A of = 2020-08-12 built on vm1-a-mci-us=0ASystem Description: void=0A=0ARecent m= essages:=0AFor information about GNU Emacs and the GNU system, type C-h C= -a.=0AMaking completion list... [3 times]=0A=0AConfigured using:=0A 'conf= igure --without-x --without-dbus --prefix=3D/usr --sysconfdir=3D/etc=0A -= -sbindir=3D/usr/bin --bindir=3D/usr/bin --mandir=3D/usr/share/man=0A --in= fodir=3D/usr/share/info --localstatedir=3D/var=0A --with-file-notificatio= n=3Dinotify --with-modules --with-jpeg --with-tiff=0A --with-gif --with-p= ng --with-xpm --with-rsvg --without-imagemagick=0A --with-xml2 --with-gnu= tls --with-sound --with-m17n-flt --with-json=0A --without-harfbuzz --with= out-cairo --with-libgmp=0A --host=3Dx86_64-unknown-linux-musl --build=3Dx= 86_64-unknown-linux-musl=0A 'CFLAGS=3D-fno-PIE -mtune=3Dgeneric -O2 -pipe= -g' 'CPPFLAGS=3D '=0A 'LDFLAGS=3D-no-pie -Wl,--as-needed ''=0A=0AConfigu= red features:=0ASOUND NOTIFY INOTIFY ACL GNUTLS LIBXML2 ZLIB XIM MODULES = THREADS JSON=0APDUMPER LCMS2 GMP=0A=0AImportant settings:=0A value of $L= C_COLLATE: C=0A value of $LANG: en_US.UTF-8=0A locale-coding-system: ut= f-8-unix=0A=0AMajor mode: Lisp Interaction=0A=0AMinor modes in effect:=0A= tooltip-mode: t=0A global-eldoc-mode: t=0A eldoc-mode: t=0A electric= -indent-mode: t=0A menu-bar-mode: t=0A file-name-shadow-mode: t=0A glo= bal-font-lock-mode: t=0A font-lock-mode: t=0A auto-composition-mode: t= =0A auto-encryption-mode: t=0A auto-compression-mode: t=0A line-number= -mode: t=0A transient-mark-mode: t=0A=0ALoad-path shadows:=0ANone found.= =0A=0AFeatures:=0A(shadow regexp-opt sort mail-extr emacsbug message rmc = puny dired=0Adired-loaddefs format-spec rfc822 mml easymenu mml-sec passw= ord-cache=0Aepa derived epg epg-config gnus-util rmail tool-bar rmail-loa= ddefs=0Atext-property-search seq mm-decode mm-bodies mm-encode mail-parse= =0Arfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045=0Aiet= f-drums mm-util mail-prsvr mail-utils time-date subr-x cl-loaddefs=0Acl-l= ib term/xterm xterm byte-opt gv bytecomp byte-compile cconv tooltip=0Aeld= oc electric uniquify ediff-hook vc-hooks lisp-float-type=0Atabulated-list= replace newcomment text-mode elisp-mode lisp-mode=0Aprog-mode register p= age tab-bar menu-bar rfn-eshadow isearch timer=0Aselect mouse jit-lock fo= nt-lock syntax facemenu font-core=0Aterm/tty-colors frame minibuffer cl-g= eneric cham georgian utf-8-lang=0Amisc-lang vietnamese tibetan thai tai-v= iet lao korean japanese eucjp-ms=0Acp51932 hebrew greek romanian slovak c= zech european ethiopic indian=0Acyrillic chinese composite charscript cha= rprop case-table epa-hook=0Ajka-cmpr-hook help simple abbrev obarray cl-p= reloaded nadvice loaddefs=0Abutton faces cus-face macroexp files text-pro= perties overlay sha1 md5=0Abase64 format env code-pages mule custom widge= t hashtable-print-readable=0Abackquote threads inotify lcms2 multi-tty ma= ke-network-process emacs)=0A=0AMemory information:=0A((conses 16 46396 88= 14)=0A (symbols 48 6012 1)=0A (strings 32 15639 1721)=0A (string-bytes 1 = 506946)=0A (vectors 16 8020)=0A (vector-slots 8 86910 7560)=0A (floats 8 = 23 290)=0A (intervals 56 209 0)=0A (buffers 1000 12)) From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 05 04:09:32 2020 Received: (at 43772) by debbugs.gnu.org; 5 Oct 2020 08:09:32 +0000 Received: from localhost ([127.0.0.1]:47755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPLYq-00049I-4G for submit@debbugs.gnu.org; Mon, 05 Oct 2020 04:09:32 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46162) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPLYo-000491-3s for 43772@debbugs.gnu.org; Mon, 05 Oct 2020 04:09:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ktjk/b9E/K2iNzm7u/7N63uEFK3Dx3cRvlv+d26mO18=; b=HIZ7dwlQQJoaRIQ5SAEXhytQes 2tgA6T3BUIrOQlF4FnlgR7knTGd6exDTq/4gf9C68Az02sLvpV1urKyhrx8NsfjjBef8ys39da1Sm GixvnvldfvdS6WuzgeOkQi4aYPUCJvLPcgQZFtKkDjBLTELWdl5L4Cc8Rr4yvlphSl5A=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPLYa-0005RJ-1y; Mon, 05 Oct 2020 10:09:23 +0200 From: Lars Ingebrigtsen To: daniel@codesections.com Subject: Re: bug#43772: 27.1; (describe-variable) breaks eshell References: X-Now-Playing: Various's _That's The Way I Feel Now: A Tribute to Thelonious Monk_: "Steve Lacy, Elvin Jones - Evidence" Date: Mon, 05 Oct 2020 10:09:14 +0200 In-Reply-To: (daniel@codesections.com's message of "Sat, 03 Oct 2020 02:11:43 +0000") Message-ID: <87o8lhp00l.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: daniel@codesections.com writes: > When using eshell-mode, calling `(describe-variable)` on a variable that > starts with "eshell" causes eshell-watch-for-password-prompt to no > longer function correctly. In the attached dribble fil [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43772 Cc: 43772@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) daniel@codesections.com writes: > When using eshell-mode, calling `(describe-variable)` on a variable that > starts with "eshell" causes eshell-watch-for-password-prompt to no > longer function correctly. In the attached dribble file, I first show > the correct behavior by opening eshell and entering `sudo ls`; eshell > correctly prompts me for a password three times. I then run > `(describe-variable 'eshell-after-prompt-hook)` and then enter `sudo > ls`. This time, eshell displays the incorrect behavior: it prints the > string "password" but does not accept input as a password or print any > output from the command. There was no dribble file attached, but I was able to reproduce the bug in Emacs 28, too. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 05 04:09:38 2020 Received: (at control) by debbugs.gnu.org; 5 Oct 2020 08:09:38 +0000 Received: from localhost ([127.0.0.1]:47758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPLYw-00049c-Au for submit@debbugs.gnu.org; Mon, 05 Oct 2020 04:09:38 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPLYu-00049G-3o for control@debbugs.gnu.org; Mon, 05 Oct 2020 04:09:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ym7ZBg4BlyqgNKPqcxvZ3A9X0e8IArOYMm1GJxM2qqI=; b=XWincW+Sf2MgDEEnkwNaHGg5mC R61D/0H9KG2e5LeUJ4EJtn+Cj90ZpHVPPiLszRi+Yc586vg5A3PO1KLvkPtglNdlYIVcc/SW7SgZ9 3vBq+DaFVXWsOS4zuY9GVqMmoQZrKSjS4GcgO8kXk9a/uR7dhpy7+daoqJN+9pFcySSs=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPLYm-0005RV-BG for control@debbugs.gnu.org; Mon, 05 Oct 2020 10:09:30 +0200 Date: Mon, 05 Oct 2020 10:09:27 +0200 Message-Id: <87mu11p008.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #43772 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 43772 + confirmed quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 43772 + confirmed quit From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 07 01:43:48 2020 Received: (at 43772) by debbugs.gnu.org; 7 Oct 2020 05:43:48 +0000 Received: from localhost ([127.0.0.1]:54829 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQ2Eu-0001vQ-Bs for submit@debbugs.gnu.org; Wed, 07 Oct 2020 01:43:48 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQ2Es-0001vC-Mn for 43772@debbugs.gnu.org; Wed, 07 Oct 2020 01:43:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=cewe4JBkfMIdshBnqHYx6coalhlA4h6QkQZg396VpI4=; b=d7PUZwpSqqqq0eFH1slW+vV++2 vim9HQPG4IxCL1GRWvg8PT/hNR/TT9d7OODrf2QLMWK6phiaAh9kXWQ2YaBOEkYrhnC2IlSHJqiDw 6wRZ3FsmhR/UdxL0hWm0/H70eLXQxWr7IHcqaZ2wGIIWtlQ7VQvx2LgSwW0FOXDgaN7k=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kQ2Ej-00028G-C4; Wed, 07 Oct 2020 07:43:40 +0200 From: Lars Ingebrigtsen To: daniel@codesections.com Subject: Re: bug#43772: 27.1; (describe-variable) breaks eshell References: <87o8lhp00l.fsf@gnus.org> X-Now-Playing: The Soft Pink Truth's _Soft Pink Missy_: "Over You (No Love)" Date: Wed, 07 Oct 2020 07:43:35 +0200 In-Reply-To: <87o8lhp00l.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 05 Oct 2020 10:09:14 +0200") Message-ID: <87wo027fqw.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > There was no dribble file attached, but I was able to reproduce the bug > in Emacs 28, too. A simpler way to reproduce the bug is to say Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43772 Cc: 43772@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > There was no dribble file attached, but I was able to reproduce the bug > in Emacs 28, too. A simpler way to reproduce the bug is to say (require 'em-tramp) This is because that file defines eshell/su, and when that's defined, the command is passed onto the shell directly without any parsing (and therefore no prompting). The logic is in (defun eshell-invoke-directly (command) ... (fboundp (intern-soft (concat "eshell/" name)))))) I'm not an eshell user, so I'm not sure what's up with that? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 15 09:13:34 2020 Received: (at 43772) by debbugs.gnu.org; 15 Nov 2020 14:13:34 +0000 Received: from localhost ([127.0.0.1]:52767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1keImc-0003fv-B0 for submit@debbugs.gnu.org; Sun, 15 Nov 2020 09:13:34 -0500 Received: from mail-wr1-f46.google.com ([209.85.221.46]:41597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1keImZ-0003fe-IF for 43772@debbugs.gnu.org; Sun, 15 Nov 2020 09:13:32 -0500 Received: by mail-wr1-f46.google.com with SMTP id 23so15813140wrc.8 for <43772@debbugs.gnu.org>; Sun, 15 Nov 2020 06:13:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=rgAx5VSRAsRYsLMDknZArofcG197A4pypbSNn7wRCAw=; b=hahuyQNjM5oEjc0TjoH7JlGPUgu0pk63oF1H2U3xR6Fbz9OUmA/hY2MZL6nD5X/l9G DneE7NdxP6Pei1VX18GalqEsD7gvfqK6eo3lgDP39h2Gczh4dKtJWHV0db1GCkXqnvt+ KcPmSYNV89SCD37s5bioGie/1ragUxT5Ewca4jTcixS7Kt/uLsNIH5hzvxYT1Ar2D8cY x9SlEOWYRmRIagD6oQyGmXdcQyt8LzOdyrBgN9651lRYFAiDBDmnJzEm9Dr16a6PDgch xiYA6B8g5uaSBiGS11gPrRnMncXmCiDJWeEssFBm9Uoq9jw4wzhWLgoyMRu9vvWaEWuE tEAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=rgAx5VSRAsRYsLMDknZArofcG197A4pypbSNn7wRCAw=; b=A9kN+V+iX40nQyF69UjT3fWfNxYiDXY2NyiuGIeqO7K4eG6dy513x8/LcaqXQGmMVx RqbzRkp/tIrMy2zQp8aLW9o1ZdpkP4Bjtey8I6hHBfqK0DbfEZmDMExIZLnAcFetROdt oLUUERrKw+LDrplWqT1vrkFOPNFis1e3+obRb36UoYltknhhQiwFJjMohvPQS4VYhKcA CBqMTFEOs+87bXG8bNhVA3GQOJmxdBnoq4tmHLWXv3c/YXsRJTQCpWlzUz2YSRlQaRWq RetXv3gvkjBkRfqdDHq9rNgRgSzzSFE3V586YlxMnGzhTc+BjipmyCV3MQIACaCClrfk eb8g== X-Gm-Message-State: AOAM53371hqxG9/pjGiYXjD2KKEKnt/aZVTStuY8hpnWl67kw8pVzOZa th3m60ESLjPIR7TWE7GXCmvFThGCSJ9E7wX4MQTPwkD8nLZ7mA== X-Google-Smtp-Source: ABdhPJyNOUYHgPA9aZEcEWBiNTezntfVo6XExE+HwM3LQsLzY8z75jrLGxUoesf2ZGToPITODxCraaPvwW3Y5DTixOo= X-Received: by 2002:adf:ed04:: with SMTP id a4mr15274370wro.172.1605449605303; Sun, 15 Nov 2020 06:13:25 -0800 (PST) MIME-Version: 1.0 From: Ruthra Kumar Date: Sun, 15 Nov 2020 19:43:14 +0530 Message-ID: Subject: Fix for bug#43772 To: 43772@debbugs.gnu.org Content-Type: multipart/mixed; boundary="0000000000006dfd6d05b425dde1" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43772 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000006dfd6d05b425dde1 Content-Type: text/plain; charset="UTF-8" Hello Lars, As you've mentioned, parsing ( and prompting ) is not done, when command is sent directly to shell. But, i think 'eshell-invoke-directly' should not have returned true for sudo and su. Comment section in 'eshell-find-alias-function' best describes it, (defun eshell-find-alias-function (name) ... ;; If the function exists, but is defined in an eshell module ;; that's not currently enabled, don't report it as found. eshell-tramp is disabled by default. So, eshell-invoke-directly should return nil for su and sudo ( I'm new to eshell as well. So, I might be wrong here ). Replacing fboundp with 'eshell-find-alias-function' should fix this. So far, I've tested locally and it is working fine. Patch attached. Regards Ruthra Kumar --0000000000006dfd6d05b425dde1 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-eshell-invoke-directly-use-eshell-find-alias-functio.patch" Content-Disposition: attachment; filename="0001-eshell-invoke-directly-use-eshell-find-alias-functio.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_khj70syc0 RnJvbSBmYTRiNWY3MWY4ZDBmNGVhNDNhYjljYWRlOGI2YTcyMWRjMjFkNjA0IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBSdXRocmEgS3VtYXIgPHJ1dGhyYWJAZ21haWwuY29tPgpEYXRl OiBTdW4sIDE1IE5vdiAyMDIwIDE2OjMxOjA1ICswNTMwClN1YmplY3Q6IFtQQVRDSF0gKGVzaGVs bC1pbnZva2UtZGlyZWN0bHkpIC0gdXNlICdlc2hlbGwtZmluZC1hbGlhcy1mdW5jdGlvbicKIGlu c3RlYWQgb2YgZmJvdW5kcAoKLS0tCiBsaXNwL2VzaGVsbC9lc2gtY21kLmVsIHwgMiArLQogMSBm aWxlIGNoYW5nZWQsIDEgaW5zZXJ0aW9uKCspLCAxIGRlbGV0aW9uKC0pCgpkaWZmIC0tZ2l0IGEv bGlzcC9lc2hlbGwvZXNoLWNtZC5lbCBiL2xpc3AvZXNoZWxsL2VzaC1jbWQuZWwKaW5kZXggZTAz NDhiYTUwMS4uZTU0Y2FmNDZmYyAxMDA2NDQKLS0tIGEvbGlzcC9lc2hlbGwvZXNoLWNtZC5lbAor KysgYi9saXNwL2VzaGVsbC9lc2gtY21kLmVsCkBAIC05MjAsNyArOTIwLDcgQEAgZXNoZWxsLWlu dm9rZS1kaXJlY3RseQogCQkgICAgICAgKGZ1bmNhbGwgcHJlZCBuYW1lKSkKIAkJICAodGhyb3cg J3NpbXBsZSBuaWwpKSkKIAkgICAgdCkpCi0JIChmYm91bmRwIChpbnRlcm4tc29mdCAoY29uY2F0 ICJlc2hlbGwvIiBuYW1lKSkpKSkpCisJIChlc2hlbGwtZmluZC1hbGlhcy1mdW5jdGlvbiBuYW1l KSkpKQogCiAoZGVmdW4gZXNoZWxsLWV2YWwtY29tbWFuZCAoY29tbWFuZCAmb3B0aW9uYWwgaW5w dXQpCiAgICJFdmFsdWF0ZSB0aGUgZ2l2ZW4gQ09NTUFORCBpdGVyYXRpdmVseS4iCi0tIAoyLjI4 LjAKCg== --0000000000006dfd6d05b425dde1-- From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 16 17:06:31 2020 Received: (at 43772) by debbugs.gnu.org; 16 Nov 2020 22:06:31 +0000 Received: from localhost ([127.0.0.1]:57584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kemdq-0007Rn-SP for submit@debbugs.gnu.org; Mon, 16 Nov 2020 17:06:31 -0500 Received: from quimby.gnus.org ([95.216.78.240]:39494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kemdp-0007RY-4f for 43772@debbugs.gnu.org; Mon, 16 Nov 2020 17:06:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6iSQ4KieAPtj8oqOpLazWnIbnjLl8TJXpMuDiIwuTA0=; b=vJZUrdQ/oPvrXbpHuoMgoLiE7w bfzpKZr7sm7uqKBSnXwje/Jz5Uz8W43p5dEY3aedaDMIwMhpNF/GKSUwD02LhHGa+5A1SdVmlSlHO zR38Q1HyrO4EUuvOZudMKhbst6WZkby4Zkic1fDGYZvgW7VleOByMPdnVuGxWocpcls0=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kemdg-000665-B3; Mon, 16 Nov 2020 23:06:22 +0100 From: Lars Ingebrigtsen To: Ruthra Kumar Subject: Re: bug#43772: Fix for bug#43772 References: X-Now-Playing: Various's _Amchitka (2)_: "Joni Mitchell - Cactus Tree" Date: Mon, 16 Nov 2020 23:06:19 +0100 In-Reply-To: (Ruthra Kumar's message of "Sun, 15 Nov 2020 19:43:14 +0530") Message-ID: <875z65vtwk.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Ruthra Kumar writes: > eshell-tramp is disabled by default. So, eshell-invoke-directly should > return nil for su and sudo ( I'm new to eshell as well. So, I might be > wrong here ). Replacing fboundp with 'eshell-find-al [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43772 Cc: 43772@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ruthra Kumar writes: > eshell-tramp is disabled by default. So, eshell-invoke-directly should > return nil for su and sudo ( I'm new to eshell as well. So, I might be > wrong here ). Replacing fboundp with 'eshell-find-alias-function' > should fix this. So far, I've tested locally and it is working fine. Thanks; I tested it and it fixes the reported case, while apparently having no other obvious negative effects, so I've applied it to Emacs 28. (I'm not overly familiar with how eshell is supposed to work, though...) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 16 17:06:36 2020 Received: (at control) by debbugs.gnu.org; 16 Nov 2020 22:06:36 +0000 Received: from localhost ([127.0.0.1]:57587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kemdw-0007S7-7j for submit@debbugs.gnu.org; Mon, 16 Nov 2020 17:06:36 -0500 Received: from quimby.gnus.org ([95.216.78.240]:39508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kemdv-0007Rl-1R for control@debbugs.gnu.org; Mon, 16 Nov 2020 17:06:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=hAKK7iPrAGSbxnqV/aPQ2M7lydCbc44FhqHUIQ+fgFI=; b=ZKnio8/Clu0AUJAkIZy9xk5wMr 84RZM1TbUv/XA+MbtteOXbA48on01il7zhE9vqMewraCI8NRC511zADp6rBkrt+HCKozeg2vJ7xnQ VPBOkCu/A2nti7D3NJM99CcBzBAoIDwzm61/N2dNSIMPWa27z2OvCK9HctWcc3x1MQsU=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kemdn-00066E-DB for control@debbugs.gnu.org; Mon, 16 Nov 2020 23:06:29 +0100 Date: Mon, 16 Nov 2020 23:06:26 +0100 Message-Id: <874klpvtwd.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #43772 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 43772 fixed close 43772 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 43772 fixed close 43772 28.1 quit From unknown Sat Jun 21 10:36:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 15 Dec 2020 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator