Public bug reported: I use Lubuntu 21.04. I use "open" command a lot to open files (mostly pdfs, sometimes images or videos) from terminal. It breaks when there is a space in the filename. Since /usr/bin/open -> /etc/alternatives/open -> /usr/bin/run-mailcap. I ran it using the "run-mailcap" name. I mailed the creator of run-mailcap. I'm attaching the email exchange as a text file. I also attach the run-mailcap file. And the bug is on line 480: "if (decode(langinfo(CODESET()), $file) =~ m![^[:alnum:],.:/@%^+=_-]!i and $0 !~ "open") {"
ProblemType: Bug DistroRelease: Ubuntu 21.04 Package: mailcap 3.68ubuntu1 ProcVersionSignature: Ubuntu 5.11.0-49.55-generic 5.11.22 Uname: Linux 5.11.0-49-generic x86_64 ApportVersion: 2.20.11-0ubuntu65.4 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: LXQt Date: Mon Feb 21 19:48:43 2022 InstallationDate: Installed on 2022-01-24 (28 days ago) InstallationMedia: Lubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420) PackageArchitecture: all SourcePackage: mailcap UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: mailcap (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug hirsute ** Attachment added: "Open the zip file, it should have 2 plain text files. One is the email exchange and the other is the run-mailcap script on my distribution." https://bugs.launchpad.net/bugs/1961600/+attachment/5562494/+files/files.zip -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1961600 Title: "open" command crashes when filename as space in it To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mailcap/+bug/1961600/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs