new syntax for mc.ext

Jan Psota jasiu at belsznica.pl
Wed Jul 1 10:40:27 UTC 2009


Could You take a look at this solution for file extension based matching
programs to files? :-)

r.conf --> /etc
r.awk (+x) --> I used to store it in /usr/local/bin
'r.awk -I' will make needed symlinks ('r', 'e' and 'v' for r.conf like
that)

Try with -t, so You will find how it works :-).

What should I change / add to make it good enough to replace mc.ext?
I use mawk, because it is smaller, faster and my GNU awk is broken
-- in line 192 it matches 'e' against /^[A-Z]/ (but not [[:upper:]]).

--
Jan Psota
-------------- next part --------------
A non-text attachment was scrubbed...
Name: r.conf
Type: application/octet-stream
Size: 1960 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20090701/bd11bdaf/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: r.awk
Type: application/x-awk
Size: 6573 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20090701/bd11bdaf/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20090701/bd11bdaf/attachment.ksh>


More information about the mc-devel mailing list