Gentoo Archives: gentoo-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Proposal for compression handling
Date: Sat, 21 Feb 2009 23:09:29
Message-Id: 49A089B6.1060107@gentoo.org
In Reply to: Re: [gentoo-dev] Proposal for compression handling by Ulrich Mueller
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Ulrich Mueller wrote:
5 >>>>>> On Thu, 19 Feb 2009, Brian Harring wrote:
6 >
7 >>> - "docompress" (without option or with option "-a"): add paths
8 >>> (directories or files) to the inclusion list
9 >>> - "docompress -x": add paths to the exclusion list
10 >
11 >> Globbing support?
12 >
13 > No, I would say. The other do* commands don't have it, and
14 > "docompress -x foo*" will work anyway since the argument is expanded
15 > before calling the function.
16
17 Keep in mind that using a glob that way is going to mean that
18 docompress has to join each path with the current directory and then
19 strip $D from the left side. Doing it that way complicates the
20 implementation details a bit, and it's not quite as flexible as
21 regular expression support would be. With regular expression support
22 you could even control which file extensions are compressed or not.
23 - --
24 Thanks,
25 Zac
26 -----BEGIN PGP SIGNATURE-----
27 Version: GnuPG v2.0.10 (GNU/Linux)
28
29 iEYEARECAAYFAkmgibEACgkQ/ejvha5XGaO3IwCfW+qTR7yMYo1D7XYk6QnUsM+s
30 4hYAoL4efSmN/xxZog1RGLuWtIqaN/h3
31 =YWcZ
32 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] Proposal for compression handling Ulrich Mueller <ulm@g.o>