GNU bug report logs - #53739
28.0.91; "C-x d" fails when "emacs -Q" starts on NetBSD with plan9/bin on head of PATH

Previous Next

Package: emacs;

Reported by: Van Ly <van.ly <at> sdf.org>

Date: Wed, 2 Feb 2022 22:13:02 UTC

Severity: normal

Tags: wontfix

Found in version 28.0.91

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Van Ly <van.ly <at> sdf.org>
Cc: luangruo <at> yahoo.com, 53739 <at> debbugs.gnu.org
Subject: bug#53739: 28.0.91; "C-x d" fails when "emacs -Q" starts on NetBSD with plan9/bin on head of PATH
Date: Sat, 05 Feb 2022 09:37:00 +0200
> Date: Sat, 5 Feb 2022 03:07:07 +0000 (UTC)
> From: Van Ly <van.ly <at> sdf.org>
> cc: luangruo <at> yahoo.com, 53739 <at> debbugs.gnu.org
> 
> The "result" exit status is "1" on line 7512 closing parenthesises.
> 
> The call is "ls -al -- /usr/X" and the problem is Plan's ls doesn't
> take the "-a" switch.  For example
> 
> '''
> % ls -a
> usage: ls [-dlmnpqrstuFQ] [file ...]
> % echo $?
> 1
> % ls -al
> usage: ls [-dlmnpqrstuFQ] [file ...]
> % echo $?
> 1
> '''

Thanks, the problem is clear now.

> The Edebug steps continue to line 7581.
> 
> lisp/files.el:7581
> "Listing directory failed but `access-file' worked"
> 
> In the case of Plan9's ls what is needed is to leave out the "-a" switch.

Which means "C-u C-x d" should fix your use case nicely.  You can also
customize dired-listing-switches in your init file, if you intend to
use this version of 'ls' routinely.  It's a defcustom for this very
reason.

Bottom line: I think we can close this bug with no further action.




This bug report was last modified 3 years and 108 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.