From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matthias Meulien Newsgroups: gmane.emacs.devel Subject: Wrong default-directory in shell buffer Date: Sun, 15 May 2022 16:06:07 +0200 Message-ID: <87lev2j3g0.fsf_-_@gmail.com> References: <874k1vzyom.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33319"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 15 16:08:19 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nqEux-0008Ti-1a for ged-emacs-devel@m.gmane-mx.org; Sun, 15 May 2022 16:08:19 +0200 Original-Received: from localhost ([::1]:52198 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nqEuv-0003sd-Ms for ged-emacs-devel@m.gmane-mx.org; Sun, 15 May 2022 10:08:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33366) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqEt7-00031p-FV for emacs-devel@gnu.org; Sun, 15 May 2022 10:06:25 -0400 Original-Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:54265) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nqEt4-00009T-8E for emacs-devel@gnu.org; Sun, 15 May 2022 10:06:24 -0400 Original-Received: by mail-wm1-x32c.google.com with SMTP id p189so7342409wmp.3 for ; Sun, 15 May 2022 07:06:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=85G41EOBE/LvVVnpufqjK/xoCePkVrXdvlRNAyXDTwo=; b=M/PVaNplJr6oUsxrBh4yYwENhBS9U850T7gAi71IcrA5oSmMzLdvcJT4w+9uRvcasP +iyLE4AXtrhnLtsg+j4jp48BAL501Ofr4Pu5g/AimsbHkJeQZqF3XOhxsWXzfXuDkCG2 pT35jYai3xXXL0y3ELMARCereolt9zVOZlpqMLD4t2aZO9/q0hKdH/VwsSQrM+H6k8fO Vq9kc4xVBHWlZvdvjyx8rqQWrnKFSO79ZTa6YXgfEDslafg1kagIZbIPHfkL3cE3QROU T8zjCFxFM7dISzEiiNFEgkmxtLz5v/OWZhTzCxu/xzK98dGUCFJKDG0PcArFt4giMF3E VMSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=85G41EOBE/LvVVnpufqjK/xoCePkVrXdvlRNAyXDTwo=; b=s6ly9yoPzJPQ+5kcRkcjajedQufmjsPQQ/HPD5PTHsbKgblNiLUg+A6hERFfV1v1EY zDpZJN7LQzmsrHVxVXZVQ9i74ExY1dXTr7qxXpqQyRRn+eGeQt0u1qX768mgW0W0XRPB jHP7TtjGX+aEDE67YZmlUYrzc5RNvdy0frk1ewpCxwOECi08fHiujxfCWXJ9eKIeMWXt SzkPhoDvMLZyydDGpX+ZhGorkOjKHjFB1Up4vaDK/hQ3BaecoLh2QP+HV5XhQ7/eJDUW xQ/H1/xPlIXEfl8azCOBtaqgwxK3+PShWEqSgqREAOBh/6hwdyLYMyO7X7xqkWMeFnNh YryA== X-Gm-Message-State: AOAM530pcmXT/p+oPo6KwS5iwb6aKk22gxukb6/T3/4bqpdpqVzIzt8O YoMeUPtMKihFBXMoEr+tEW4EtSX3EBg= X-Google-Smtp-Source: ABdhPJxekmjDNOclAaHCjtuKJJTahn+t+cOjYz5TrytZOXkpInS9FisNpnoBUZPjhyA1mR2ieKLxkg== X-Received: by 2002:a05:600c:3595:b0:394:8343:a66d with SMTP id p21-20020a05600c359500b003948343a66dmr23499070wmq.49.1652623569240; Sun, 15 May 2022 07:06:09 -0700 (PDT) Original-Received: from carbon.localdomain ([2a01:e0a:245:c850:98f5:429a:aa8e:95bb]) by smtp.gmail.com with ESMTPSA id n19-20020adfc613000000b0020c5253d927sm7045653wrg.115.2022.05.15.07.06.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 May 2022 07:06:08 -0700 (PDT) In-Reply-To: <874k1vzyom.fsf@posteo.net> (Philip Kaludercic's message of "Wed, 11 May 2022 18:55:37 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=orontee@gmail.com; helo=mail-wm1-x32c.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:289793 Archived-At: With a recent build from master branch, I sometime have a wrong value ("/../" to be precise) for the default-directory variable associated to shell buffers. I create shell buffers with project-shell, the default-directory value is the expected one, the wrong value appears after I've executed some commands. (As a consequence all project-* commands fail to recognize current project and I am asked to select a project which is really annoying.) I have not found a recipe to reproduce; But I've found that I've executed commands containing the string "/../" in a shell buffer with the problem: cd ../../ pushd ../../ xdg-open ../../ (Trailing slashes added by the completion framework, company). I also executed commands like meson build which outputs strings containing the "/../" string: [2/3] /usr/bin/meson --internal msgfmthelper ../data/app.argos.Argos.desktop.in data/app.argos.Argos.desktop desktop ../data/../po I didn't find any related bug report in debbugs. Am I the only one experiencing such a regression? I am using GNU Emacs 29.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) build from master on 2022-04-18, and I keep shell-mode rather unchanged: (add-hook 'shell-mode-hook (lambda () (setq shell-font-lock-keywords nil) (goto-address-mode))) (define-abbrev-table 'shell-mode-abbrev-table '(("null" "&> /dev/null"))) -- Matthias