From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74524: 29.4; dirtrack-mode Date: Mon, 25 Nov 2024 20:55:03 +0200 Message-ID: <867c8ri1o8.fsf@gnu.org> References: <86iksbij3m.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7739"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74524@debbugs.gnu.org To: Colton Goates Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 25 19:56:22 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1tFeFy-0001tt-JX for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Nov 2024 19:56:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFeFf-0004Fw-Ou; Mon, 25 Nov 2024 13:56:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFeFe-0004Fj-Qb for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 13:56:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tFeFe-00035J-HR for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 13:56:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=Bmz4Xyw8T2lDZvwQ4nQ6vcqnVRjgzyCE+AHemIkqVxQ=; b=miRxc6J3APiK7qdXMuEG9k1czk05YNOwsK7L7yLYX+0yPF7+rcykj6x4v3ODCDlIzHzPnbIOHlSM79TKPJ2ZX0U5cbvbLM+ZFVnhpwI4rrC6DBEfsFEtsPIqycnEoQxNS7K5+xYRZKhGHk2bcywcLMDVl+ullji60XPP52s2pg7wO65h/BISBijVoDyjNJAPvQk8NU8fT6VuGlAG2+hB4BbsC20lQLYpu/F2JNOx5q1wW1OhjTjVx+kH4vlTe2IHmw8bBVB04iz/PXZh+Z8MCKadFMJcgvLsWIiinuBOQbEPhLLTkDcAW/RbHlTwI2FYHboVjDRy2U5mXyKIyVaUJA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tFeFe-0006tg-Bb for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 13:56:02 -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, 25 Nov 2024 18:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74524 X-GNU-PR-Package: emacs Original-Received: via spool by 74524-submit@debbugs.gnu.org id=B74524.173256091426445 (code B ref 74524); Mon, 25 Nov 2024 18:56:02 +0000 Original-Received: (at 74524) by debbugs.gnu.org; 25 Nov 2024 18:55:14 +0000 Original-Received: from localhost ([127.0.0.1]:40650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFeEs-0006sS-Db for submit@debbugs.gnu.org; Mon, 25 Nov 2024 13:55:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFeEp-0006p1-TE for 74524@debbugs.gnu.org; Mon, 25 Nov 2024 13:55:12 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFeEk-0002xy-HY; Mon, 25 Nov 2024 13:55:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Bmz4Xyw8T2lDZvwQ4nQ6vcqnVRjgzyCE+AHemIkqVxQ=; b=BQqsrBkJ7fzn 6btVd8CJ+PRiEPfH+y7lUL4xglPc4M5TcG3l9HxAFIPSfYEYro+QkK6HuntAESMyXcOfiBpa3nw/h eXC82aiWf9jhZJB1mVhvbK7hJAS0x4vwFu8VZZGpR/TDU9mSQFI1M6USJhiRaPkCQR6bt6een82j1 spln2NufyflWVaokA3t2k1jjhcU9DfhJX0B+cWV4tkRqi+dQqhKPpnuYrn6qBsxpqGLb7bDg+hWNZ 4bRFkhnjB0ojZ+LQGz5wWIOv+xjiJqtxJ+F1Fuu1OonrYbUGKYHeFlDYGNBogAL6tX/msBrkHkXu0 1/NKQ4aq/WUGsVsJuv00Mg==; In-Reply-To: (message from Colton Goates on Mon, 25 Nov 2024 10:27:00 -0700) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:295951 Archived-At: > From: Colton Goates > Date: Mon, 25 Nov 2024 10:27:00 -0700 > Cc: 74524@debbugs.gnu.org > > Coltons-MacBook-Pro:/Users/coltongoates/software-dev/$ isn't intended to be a directory name, it's a string > that's intended to look exactly like my prompt. (I know it's pretty contrived.) > > So, if someone prints something that resembles their prompt, dirtrack will change the directory, because > dirtrack thinks it just saw the shell prompt appear, but it really just saw a string that resembles the prompt. > Does that make more sense now? What do you expect dirtrack to do when you deliberately try to deceive it? AFAIU, dirtrack is a piece of heuristic ad-hocery (as explained in its commentary), so it cannot be expected to survive such deception. What kind of changes would you suggest to consider to handle the cases such as this one?