MC_EXT_BASENAME / %p is unset when viewed using mcview #4150
Labels
area: mcview
mcview, the built-in text editor
prio: low
Minor problem or easily worked around
ver: 4.8.25
Reproducible in version 4.8.25
Milestone
Important
This issue was migrated from Trac:
egmont
(@egmontkob)I'm trying to write a filter for certain type of files, to be executed when I view the file in mc.
I've added an entry something like this to mc.ext:
The filename is always correctly passed if I use %f in the command line, or check for the MC_EXT_FILENAME environment variable (as mentioned at the top of mc.ext). I can either start "mc" and press F3 on the file, or I can start "mcview filename.myextension", it doesn't matter, they both work.
If I pass %p, or check for its corresponding MC_EXT_BASENAME environment variable, and then I start up "mc" and press F3 on the file, it works again.
However, if I try to pass %p or check for the MC_EXT_BASENAME env var, and then I start "mcview filename.myextension", these command line parameter and environment variable are missing.
%p / MC_EXT_BASENAME (and all the other macros / env vars which I haven't checked) should still work in this case.
The text was updated successfully, but these errors were encountered: