Public bug reported:
First reported at https://askubuntu.com/q/1568336/1004020 . Broken is
the convenient way for Midnight Commander to sync its last current
working directory on exit to the parent Bash.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 26.04 LTS
Release: 26.04
Codename: resolute
$ apt-cache policy mc
mc:
Installed: 3:4.8.33-1.1build1
Candidate: 3:4.8.33-1.1build1
Version table:
*** 3:4.8.33-1.1build1 500
500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu
resolute/universe amd64 Packages
100 /var/lib/dpkg/status
# Example 1
```console
$ pwd
/home/home
$ . /usr/lib/mc/mc.sh
$ mc
$ cd ..
/home$ exit
$ pwd # Actual behavior
/home/home
$ # Expected behavior: /home
```
# Example 2
```console
$ pwd
/home/home
$ mc -P output
$ cd ..
/home$ exit
$ cat output # Actual behavior
cat: output: No such file or directory
$ # Expected behavior: /home
```
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: mc 3:4.8.33-1.1build1
ProcVersionSignature: Ubuntu 7.0.0-27.27-generic 7.0.6
Uname: Linux 7.0.0-27-generic x86_64
ApportVersion: 2.34.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: KDE
Date: Sun Jul 12 05:38:36 2026
InstallationDate: Installed on 2022-11-05 (1345 days ago)
InstallationMedia: Ubuntu 22.10 "Kinetic Kudu" - Release amd64 (20221020)
SourcePackage: mc
UpgradeStatus: Upgraded to resolute on 2026-04-24 (79 days ago)
** Affects: mc (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug resolute wayland-session
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2160442
Title:
`/usr/lib/mc/mc.sh` wrapper, internally `mc -P`, is broken
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mc/+bug/2160442/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs