id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
4612	printwd option issue	musinsky		"Fedora 41, package: `mc-4.8.32-1.fc41.x86_64.rpm`
{{{
$ ls create.file
ls: cannot access 'create.file': No such file or directory
$ /usr/bin/mc -P create.file   # non exist file
# exit from mc
$ cat create.file
/home/musinsky   # OK, contains last  working  directory

$ touch exist.file
$ /usr/bin/mc -P exist.file    # already existing file
# exit from mc
$ cat exist.file # file is empty !!!
}}}

As result this issue [https://midnight-commander.org/browser/contrib/mc-wrapper.sh.in mc-wrapper.sh] not working correctly (no last working directory after exit from mc).
Solution in my case (Fedora, bash): replace `'mktemp'` by `'mktemp --dry-run'`.
"	defect	closed	major		mc-core	4.8.32	duplicate					no branch	
