Ticket #2773 (new defect)

Opened 6 years ago

Last modified 4 years ago

'include' keyword (for command class def) have no effect if it was defined before 'Include' keyword (for commad def).

Reported by: gavenkoa Owned by:
Priority: major Milestone: Future Releases
Component: mc-core Version: master
Keywords: Cc: gavenkoa@…
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

If I create ~/.config/mc/mc.ext file:

include/video
	Open=echo OK
shell/.avi
    Include=video

and then press RET on .avi file nothing happen.

But if swap this entries I get 'OK' in terminal.


I discover this bug when introduce techniture to merge system wide and own mc.ext file in: #2772 (Suggestion to load /etc/mc/mc.ext before ~/.config/mc/mc.ext anyway or add keyword to mc.ext for this purpose).

For example I want redefine class 'video'. So I put:

include/video
    Open=GOOD-VIEWER %f

then I put content of /etc/mc/mc.ext, which have such lines:

...
### Video ###

regex/\.([aA][vV][iI])$
	Include=video
regex/\.([mM][kK][vV])$
	Include=video

include/video
	Open=BAD_VEWER %f
...

But Open=GOOD-VIEWER %f was ignored and Open=BAD_VEWER %f was taken in account.

Because of this bug I can not just concatenate my settings with system wide, I need use some sed/awk/perl magic...

Change History

comment:1 Changed 6 years ago by gavenkoa

I use MC:

GNU Midnight Commander, версия 4.8.1

from Debian wheezy/sid.

comment:2 Changed 6 years ago by andrew_b

  • Blocking 1677 added

comment:3 Changed 6 years ago by andrew_b

  • Blocking 1677 removed

comment:4 Changed 4 years ago by gavenkoa

  • Cc gavenkoa@… added
Note: See TracTickets for help on using tickets.