From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.help Subject: Re: Autogen in Emacs Shell Date: Fri, 1 May 2015 18:08:38 +0200 Message-ID: References: <83twvzszjv.fsf@gnu.org> <20150501092657.GA19316@tuxteam.de> <20150501150340.GB30776@tuxteam.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1430496535 11586 80.91.229.3 (1 May 2015 16:08:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 May 2015 16:08:55 +0000 (UTC) Cc: help-gnu-emacs To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 01 18:08:54 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YoDUj-0000n2-PT for geh-help-gnu-emacs@m.gmane.org; Fri, 01 May 2015 18:08:53 +0200 Original-Received: from localhost ([::1]:54729 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoDUi-0006PX-Ts for geh-help-gnu-emacs@m.gmane.org; Fri, 01 May 2015 12:08:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoDUY-0006PH-DN for help-gnu-emacs@gnu.org; Fri, 01 May 2015 12:08:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YoDUX-0002eX-EU for help-gnu-emacs@gnu.org; Fri, 01 May 2015 12:08:42 -0400 Original-Received: from mail-lb0-x229.google.com ([2a00:1450:4010:c04::229]:33646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoDUV-0002dv-O0; Fri, 01 May 2015 12:08:40 -0400 Original-Received: by lbbzk7 with SMTP id zk7so67523907lbb.0; Fri, 01 May 2015 09:08:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cl4gwGFq7fYjeiGb+JKO5eJ41VYhL3XxAWd0VOtsqRA=; b=i+drr+PaMmTrShcIG5VRHVvFd0DLtnWYEw7yRT2iWL6fDIgSqU0yqPgMcgvFbJ/Qw/ +qbK97rLCwiwMtzalTN2RdLI9x2HyHTVP71MUK5LZGV0vwbWlZdJaJUq+D2rudA9K8H9 TlqkQNscQuyLGy18VaypOND9kN1Qx1GbJVA5ZE/Fne2dUO30u1XLmGAZ5FjPl3MNQ5NY JSAeIcQrogR0X9r4PwHg6jbXBMoJNHLTyZyYBFgvm0pcIzSTdJK5mtcXtKCH1QKwbaNG OITS/uwNi/fHjGYl8r41b4uwPJlOIqx6z9K21PcEdgWqOGynVbZ8C5MJX8wB6Tf4J4i/ 5h+g== X-Received: by 10.112.125.138 with SMTP id mq10mr8913186lbb.35.1430496518763; Fri, 01 May 2015 09:08:38 -0700 (PDT) Original-Received: by 10.112.36.103 with HTTP; Fri, 1 May 2015 09:08:38 -0700 (PDT) In-Reply-To: <20150501150340.GB30776@tuxteam.de> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::229 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104137 Archived-At: So I found out that the "/etc/post-install/05-home-dir.post" script changes to `HOME' depending on `CHERE_INVOKING' (sick stuff I must say). Setting (setenv "CHERE_INVOKING" "1") solves the problem with unintentional change to `HOME' when "--login" is present. Now I can finally invoke 'bash' with (defun bash (&optional buffer) (interactive) (let ((explicit-shell-file-name "bash") (explicit-bash-args '("--noediting" "-l" "-i"))) (setq buffer (my-call shell buffer))) (with-current-buffer buffer (when (equal (buffer-name) "*shell*") (rename-buffer "*bash*" t)))) So far so good. Now onto the original problem since even with "-l" those issues with 'bsdtar' and inability to find 'automake' by 'autogen.sh' still remain. I'm currently looking at the diff between the two `set' commands from ConEmu and Emacs. There are of course quite some differences, I don't want to post all of them not to overwhelm you. But here are probably the most interesting ones: ConEmu: LANG=en_US.UTF-8 PKG_CONFIG_PATH= PROMPT= SESSIONNAME= SHELL=/usr/bin/bash Emacs: LANG=ENU PKG_CONFIG_PATH='C:\Tools\x64\MSYS2\mingw64\lib\pkgconfig;' PROMPT='$P$G' SESSIONNAME=Console SHELL=C:/Tools/x64/MSYS2/mingw64/libexec/emacs/25.0.50/x86_64-w64-mingw32/cmdproxy.exe What do you think guys?