Created attachment 1432519 [details]
Error message screenshot
Description of problem:
when I try to extract (i.e. F5=copy) files from a .zip archive with mc I get this error message:
/usr/share/Modules/init/bash: line 58: export: _moduleraw: not a function
Version-Release number of selected component (if applicable):
Fedora 28 fully updated as of 6 Mat 2018
File seems to be extracted. the right panel is not updated, but the file is there.
F5 from a non .zip works.
Always, but if I immediately extract again the same file it does not err. A different file, yes, same message.
Steps to Reproduce:
1. start mc
2. select a .zip on the left panel
3. F5 to copy to the right panel
error message as described, right panel not updated, but file IS copied
no message, right panels updated
$ rpm -qf /usr/share/Modules/init/bash
error: file /usr/share/Modules/init/bash: No such file or directory
$ grep -r Module /usr/libexec/mc/*
$ strings /usr/bin/mc| grep Module
This script is not part of the mc and whatever is wrong here is not part of the mc.
mc can copy multiple not only .zip file s but any other files.
What you've described is just normal/regular copy of any file (not only the .zip file).
You might be right, but this is what I have in my system.
I have upgraded the last 3-4 Fedoras, so it might be something that has not completed properly in the upgrades.
I will try to see where it comes from.
The file is not part of mc, but it belongs to environment-modules
andrea@bomba:/usr/share/Modules/init$ rpm -qf /usr/share/Modules/init/bash
In any case it is either a problem with one of the 2 packages or the way they work together.
If you believe it is not mc, it should be reassigned, but it is still a bug I can trigger with mc.
Problem is that with your description of the issue it is just normal copy of the file.
I don't want to say that there is no issues with mc vfs but on quick test with some zip file I was not able to reproduce any issues and definitely packaged mc is not using /usr/share/Modules/init/bash .. only this and nothing more :)
I have tried in a different user with almost a default set up and it does not happen.
It happens not just when copying files from a .zip but when browsing archives.
e.g. when I look into bash-4.4.19-2.fc28.x86_64.rpm
mc must be triggering that script directly or indirectly via bash or other things.
I guess I will open a bug for that package which already had something similar
would you know what bash command is used by mc to extract zip files?
I would like to reproduce it in a smaller setup to find what the issue is.
here is another one
This is not bug in mc.
For the record if anybody ever comes here, I reset my .bashrc (which could have been up to 15Y old) and solved it.