[PATCH] Re: deb-support-without-dpkg.patch was Re: AMC patches ported to mc-2006-02-03-13.tar.gz

Leonard den Ottolander leonard at den.ottolander.nl
Sat Mar 11 21:18:46 UTC 2006


Hi Pavel,

On Fri, 2006-03-10 at 10:34 +0200, Pavel Tsekov wrote:
> As far as I understand .\? will match a single char (any char) or no char
> at all so if we have (output of "ar tv"):

You are right.

What I was trying to achieve is to explicitly match the first part of
the string without being greedy (in case the file name contains a time
string). I'm not sure how to achieve that. But since the first part of
the string is unaffected by the matching anyway the first match can just
be dropped.

See attached patch for how I propose to avoid a double match in the two
expressions if the filename contains a time or date value by temporarily
introducing a unique separator string.

Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research

-------------- next part --------------
A non-text attachment was scrubbed...
Name: uar.diff
Type: text/x-patch
Size: 605 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20060311/15aa2023/attachment.bin>


More information about the mc-devel mailing list