From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dave Goel Newsgroups: gmane.emacs.devel Subject: Re: Dired delete(d) the wrong file! Date: Fri, 5 Jul 2024 15:02:14 -0400 Message-ID: References: <86r0c875s4.fsf@gnu.org> <86h6d470oh.fsf@gnu.org> <868qyg6qvl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000047a9ac061c84b42b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36561"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, emacs-devel@gnu.org To: Eli Zaretskii , Dave Goel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 05 21:03:20 2024 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 1sPoDI-0009Fo-34 for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Jul 2024 21:03:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPoCV-000410-SZ; Fri, 05 Jul 2024 15:02:31 -0400 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 1sPoCT-0003zj-Te for emacs-devel@gnu.org; Fri, 05 Jul 2024 15:02:29 -0400 Original-Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPoCS-0008Dc-AM; Fri, 05 Jul 2024 15:02:29 -0400 Original-Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-70af48692bcso1481946b3a.1; Fri, 05 Jul 2024 12:02:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720206146; x=1720810946; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bmt9CZTMxVU82Cs3f+p4f3pP4naAwu21lGExO2WQIOY=; b=OpoSopydJzn7kSmB8WU2t8Ka4MJkQp4yTT/5DWoYEXIRvFelTh3HrEXMZqNpMbdBvA a05eFPUrLGyMemfrDT+nOjOn6OMefN8XahIwblkzmpc8Ok/pf+e3LeitcZSbmJrgSIvp GVHvcB9Rlzti8c5Xkobbx5bUfz1SgXx5Gpdf8Mk2rLHzMc2+dYIRUYo6NfsFfDrfSTHE saTuuGG3z/XHTUzyRouiKiSFy6Abo5nszH9ZIuc7wP9vqjlAjf4m6B6QgbRq4EqX0bMa lVfrAnvWdWMv2tlMlUmr5kCi7OF3qvLML015rOofuW711k8BKb1JIyh80hFAnkhqyoao UtSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720206146; x=1720810946; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bmt9CZTMxVU82Cs3f+p4f3pP4naAwu21lGExO2WQIOY=; b=dMMT+utSgqUcxwjVMqsw6qzp9QxGm1cLnuo2YBinYYCCH4CXQTsonQhzn+f/1b0nJO uGDDtJaXOryt2v6R/erzQdW0qEPS5RBE8vfRkMxmdxD++SUg4TzIfL0YQ77qd9T+Ut9C E8AKMtjTLzgxt/sv6Lq0zbTAOxRQa66NVlf1zqssSpmRPYJGmlQWwoHcLi6nFjbePjFL 610a0cSg/CVsK09PKS7wAIgCi/2pJ6Qp4wHxXI8VrdqOz40MSklwRkR16KmlwLI393XM sdXrzLFVnrVhYdsfel6SHbyXkLsgeZv8wsvMcfJVN8EmdZQUZ9LxtgDoziSrWb1MIqMK YnLQ== X-Forwarded-Encrypted: i=1; AJvYcCVBdTer8UiVuMo5E8vMi533ar9SBzBvRtenn9XvTGs/DvUAL0PGIpCLOUIhPmqUpJf2viO0yqG6ri2BxUydtZxBvbec X-Gm-Message-State: AOJu0YxlhNuIrKRrarUultvtW83iARvqSy9eT+epQglcuVV1bBrORNCC gJ4+/fztawCuQ2yr6zD3hgJ7v2yyij1T0W2OJT3hBr4gFUmnj/758chpgnvpIP7Z+P1gj7V00U+ xqiaZUj19YRWX0pgz0+hZYUZvC7Ss0g== X-Google-Smtp-Source: AGHT+IH49V1VKj/67sAJSaNBqYHFrZqaqY5i4KOJcCyu6b8DYbk5uF2Ap046eLdbEaRov/CslTvLP9k3V88LMs/5rzY= X-Received: by 2002:a05:6a20:9144:b0:1be:bfa2:5ac3 with SMTP id adf61e73a8af0-1c0cc75c76cmr6290556637.35.1720206146113; Fri, 05 Jul 2024 12:02:26 -0700 (PDT) In-Reply-To: <868qyg6qvl.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=deego3@gmail.com; helo=mail-pf1-x42b.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:321397 Archived-At: --00000000000047a9ac061c84b42b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Jul 5, 2024 at 7:05=E2=80=AFAM Eli Zaretskii wrote: > > That regexp is the best heuristic we could come up with that caters to > the various formats of date and time that the various versions of 'ls' > out there produce. It is true that the regexp can be tricked into > mistakes, but we could not find a better solution that supports all > the valid use cases. We use the --dired option of 'ls' when available > precisely for this reason: to allow Dired to determine the file names > reliably. If --dired is not supported, then there will be problems > with certain file names, yes. That is a known limitation, so users > are encouraged to install GNU Coreutils (which is where GNU 'ls' comes > from) to make Dired immune to those problems. > Thank you. --00000000000047a9ac061c84b42b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

=

= On Fri, Jul 5, 2024 at 7:05=E2=80=AFAM Eli Zaretskii <eliz@gnu.org> wrote:

That regexp is the best heuristic we could come up with that caters to
the various formats of date and time that the various versions of 'ls&#= 39;
out there produce.=C2=A0 It is true that the regexp can be tricked into
mistakes, but we could not find a better solution that supports all
the valid use cases.=C2=A0 We use the --dired option of 'ls' when a= vailable
precisely for this reason: to allow Dired to determine the file names
reliably.=C2=A0 If --dired is not supported, then there will be problems with certain file names, yes.=C2=A0 That is a known limitation, so users are encouraged to install GNU Coreutils (which is where GNU 'ls' co= mes
from) to make Dired immune to those problems.

Thank you.

--00000000000047a9ac061c84b42b--