Ticket #4150 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

MC_EXT_BASENAME / %p is unset when viewed using mcview

Reported by: egmont Owned by: andrew_b
Priority: minor Milestone: 4.8.28
Component: mcview Version: 4.8.25
Keywords: Cc:
Blocked By: Blocking:
Branch state: merged Votes for changeset: committed-master


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:

        View=%view{ascii} myfilter %p

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.

Change History

comment:1 Changed 3 years ago by andrew_b

  • Owner set to andrew_b
  • Status changed from new to accepted
  • Branch state changed from no branch to on review
  • Milestone changed from Future Releases to 4.8.28

Branch: 4150_mcview_MC_EXT_BASENAME

comment:2 Changed 3 years ago by andrew_b

  • Votes for changeset set to andrew_b
  • Branch state changed from on review to approved

comment:3 Changed 3 years ago by andrew_b

  • Status changed from accepted to testing
  • Votes for changeset changed from andrew_b to committed-master
  • Resolution set to fixed
  • Branch state changed from approved to merged

comment:4 Changed 3 years ago by andrew_b

  • Status changed from testing to closed
Note: See TracTickets for help on using tickets.