[patch] Two fixes for mc.ext
- From: "Martin Bialasinski" <martin internet-treff uni-koeln de>
- To: mc-devel list <mc-devel gnome org>
- Subject: [patch] Two fixes for mc.ext
- Date: 14 Jul 2001 00:08:20 +0200
Hi,
recently, file(1) chaged the description for .deb packages to "Debian
binary package (format 2.0), uses gzip compression". The entry for
gziped files just checks for the regexp "gzip" in the string. As the
gzip entry is listed prior to the .deb entry, .deb files are
mistakenly seen as plain gziped files.
The fix is to anchor the regexp (suggested by Oskar Liljeblad)
diff -ruN mc-4.5.54.orig/lib/mc.ext.in mc-4.5.54/lib/mc.ext.in
--- mc-4.5.54.orig/lib/mc.ext.in Sat Mar 3 23:33:22 2001
+++ mc-4.5.54/lib/mc.ext.in Sun Jul 8 11:45:59 2001
@@ -496,28 +496,28 @@
Extract=cat '%f' | cpio -ic
# gzip
-type/gzip
+type/^gzip
Open=gzip -dc %f | %var{PAGER:more}
View=%view{ascii} gzip -dc %f 2>/dev/null
Edit=I=`date +%%s`; export I; gzip -cd %f >/tmp/gzed.$I && %var{EDITOR:vi} /tmp/gzed.$I && gzip -c /tmp/gzed.$I > %f; rm -f /tmp/gzed.$I
Uncompress=gunzip %f
# bzip2
-type/bzip2
+type/^bzip2
Open=bzip2 -dc %f | %var{PAGER:more}
View=%view{ascii} bzip2 -dc %f 2>/dev/null
Edit=I=`date +%%s`; export I; bzip2 -cd %f >/tmp/bzed.$I && %var{EDITOR:vi} /tmp/bzed.$I && bzip2 -c /tmp/bzed.$I > %f; rm -f /tmp/bzed.$I
Uncompress=bunzip2 %f
# bzip
-type/bzip
+type/^bzip
Open=bzip -dc %f | %var{PAGER:more}
View=%view{ascii} bzip -dc %f 2>/dev/null
Edit=I=`date +%%s`; export I; bzip -cd %f >/tmp/bzed.$I && %var{EDITOR:vi} /tmp/bzed.$I && bzip -c /tmp/bzed.$I > %f; rm -f /tmp/bzed.$I
Uncompress=bunzip %f
# compress
-type/compress
+type/^compress
Open=gzip -dc %f | %var{PAGER:more}
View=%view{ascii} gzip -dc %f 2>/dev/null
Edit=I=`date +%%s`; export I; gzip -cd %f >/tmp/gzed.$I && %var{EDITOR:vi} /tmp/gzed.$I && gzip -c /tmp/gzed.$I > %f; rm -f /tmp/gzed.$I
BTW: mc now includes his version of the uzip vfs. There is also a
readme file available, that could/should be included. Should I send it?
And as we are speaking about mc.ext, Michel Casabona reported, that
the entry for rexx files matches more than it should. His fix is
attached below.
diff -ruN mc-4.5.54.orig/lib/mc.ext.in mc-4.5.54/lib/mc.ext.in
--- mc-4.5.54.orig/lib/mc.ext.in Sat Mar 3 23:33:22 2001
+++ mc-4.5.54/lib/mc.ext.in Sun Jul 8 12:01:23 2001
@@ -407,7 +407,7 @@
View=%view{ascii} dbview -b %f
# REXX script
-regex/\.(rexx)|(rex)|(cmd)$
+regex/\.(rexx|rex|cmd)$
Open=rexx %f %{Enter parameters};echo "Press ENTER";read y
Ciao,
Martin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]