From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#38057: (shell-command "alias" "bash-aliases" "bash-errors") - Shell command succeeded with no output Date: Mon, 04 Nov 2019 18:17:58 +0200 Message-ID: <83zhhbhayx.fsf@gnu.org> References: Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="263205"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38057@debbugs.gnu.org To: arthur miller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 04 17:18:15 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iRf3U-0016FW-5V for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Nov 2019 17:18:12 +0100 Original-Received: from localhost ([::1]:34922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRf3S-0006eX-CH for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Nov 2019 11:18:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51149) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iRf3M-0006eD-10 for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 11:18:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iRf3K-0004km-Qb for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 11:18:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56815) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iRf3J-0004kP-Tw for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 11:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iRf3J-0001Dp-MI for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2019 11:18:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Nov 2019 16:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38057 X-GNU-PR-Package: emacs Original-Received: via spool by 38057-submit@debbugs.gnu.org id=B38057.15728842794684 (code B ref 38057); Mon, 04 Nov 2019 16:18:01 +0000 Original-Received: (at 38057) by debbugs.gnu.org; 4 Nov 2019 16:17:59 +0000 Original-Received: from localhost ([127.0.0.1]:37403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRf3G-0001DT-ME for submit@debbugs.gnu.org; Mon, 04 Nov 2019 11:17:58 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42057) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRf3F-0001DH-1B for 38057@debbugs.gnu.org; Mon, 04 Nov 2019 11:17:57 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60652) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iRf36-0004h3-US; Mon, 04 Nov 2019 11:17:50 -0500 Original-Received: from [176.228.60.248] (port=3027 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iRf35-0005RR-OJ; Mon, 04 Nov 2019 11:17:48 -0500 In-reply-to: (message from arthur miller on Mon, 4 Nov 2019 11:52:38 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170944 Archived-At: > From: arthur miller > Date: Mon, 4 Nov 2019 11:52:38 +0000 > > When I run 'alias' (a bash command) from within elisp I don't get list of aliases. It used to work fine, but in my > latest build from git as of 2019-11-04 (4th november) it does not. Maybe it stopped to work earlier, I don't > know, I was reworking my init file, so I didn't had it in for like a month or so, anyway, when I test it today I don't > get the 'alias' command to work at all. It works from ansi-term, but not interactively or from an elisp script. > > I get message that shell command succeeds without any output. The line (shell-command "alias" > "bash-aliases" "bash-errors") is part of a little script I posted on Emacs Wiki earlier this year > https://www.emacswiki.org/emacs/EshellAlias. > > Is it a bug or do I something wrong? I am sorry, I am not an expert on Emacs, so I am a bit unsure. Does the following discussion help to understand the issue? https://stackoverflow.com/questions/1615877/why-aliases-in-a-non-interactive-bash-shell-do-not-work