At first I thought I just forgot the right key combination or something, but as I kept using Dired after my upgrade something just felt wrong, as if some of the folders I was visiting in my home directory weren’t there or were organized in a way I didn’t ask for. I finally doubled down after I wanted to copy my old Vivaldi CSS file — the one that allows me to customize my tab stack — from my backup to my current config.In Dired, I use DWIM (Do What I Mean) turned on. In a nutshell, as most Emacs readers would know, it allows you to copy from one folder to another by having both open in different windows: in one, I was visiting my mounted backup archive; in the other, I was looking at my current Vivaldi config library. It’s a matter of a simple keystroke: C.Instead of copying the file over, Dired warned me I was going to overwrite my config folder: Overwrite '/home/jtr/.config/vivaldi'? [Type yn!q or C-h]. Renaming the file (moving it) caused the same issue.With the additional things I’ve seen, I decided it’s time to dig in a bit deeper. Claude blamed a trailing slash in my filepath: all my folders in Dired ended with a /, which was then becoming part of the path in Dired, which confused it. I could see why it was saying that, but I didn’t like this answer.My Dired settings have the following flags turned on: dired-listing-switches "-laGhFt --group-directories-first --time-style=long-iso". The slash comes from the F option, which adds a slash to directories and an asterisk to executable files among other things. I thought about removing it and fixing the problem, but the point was that this option has been on for a long time, probably over two years — way before I upgraded to Kubuntu 26.04 LTS. And I didn’t have this problem before, not on the Mac and not in Linux. So I dug deeper.I suspected something went wrong with my Emacs installation, and I went to check. I accused Claude, who helped me take some libraries out of my new Emacs install (the email server, imagemagick, which I planned to install later anyway, and other things of that nature). Claude defended itself and showed me why my accusation didn’t make sense, and this time I had to agree with it. This wasn’t the problem. What it did offer was that the issue was with the ls command itself, which Emacs uses.“Now hang on,” I thought, “this sounds familiar…” and yeah, it was. macOS has this ls issue1: it ships with a different flavor of ls, which is based on its FreeBSD roots. It works as expected for most simple functions, say ls -la on a folder, but when you use it in Dired, which is used to GNU’s ls flavor, it breaks — breaks being a key point.On my Mac, using Dired without installing GNU’s Coreutils — which include gls — will simply not work. Dired will error out, hard stop. But what I had in Linux was a soft break. It kind of worked, halfway, messing with my head and telling me that I’m going crazy.Turns out I wasn’t:Efforts are afoot to replace the GNU coreutils with Rust ones in the version after next of Ubuntu, 25.10 – which also means changing the software license.Bastards. Well, not really. Reading through the post and then the article among other sources, I kind of see their point. And not only that, Ubuntu (which is what Kubuntu is, for the purposes here) still ships GNU Coreutils; they are just not the default anymore. I could basically turn them on globally, but hey, I’m on an LTS release, and they are obviously pushing this going forward, and the only thing this matters to me is Emacs. This wasn’t the hill and it wasn’t the time. The fix is even easier than it is on macOS (because on a Mac, you need to actually get GNU’s coreutils with Homebrew) — just put this in your .emacs, or your init: (setq insert-directory-program "gnuls").I did that and Dired started behaving again.I covered this in more depth in my first Emacs Config Gems. The idea is to run certain OS configs for Emacs before loading the rest of it, this being one of them. Now I need to do the same for Kubuntu. ↩︎