Hi Dan,

On Fri, May 15, 2009 at 03:53:21 +0300, Dan Pascu wrote:
> If you do not care about the char being 'a' and can use a file filled with 
> '0' instead, just remove the tr command to make it even faster:
> 
> printf "%01048000d" 0

This sounds like a simple portable solution.  I don't think we
particularly need the character to be 'a' either.  Would you mind
submitting a patch?  It's tests/pull_binary.sh

Help with the other two perlisms would also be nice, unless, Salvatore,
you've already got a plan up your sleeves for that :-)

tests/optimize_relink.sh:  echo 'use File::Basename; $res=0; while
($fn=<'$1'/*>) { $fn2="'$2'/" . basename($fn); @fd1=lstat($fn);
@fd2=lstat($fn2); $res += ($fd1[1] != $fd2[1]);}; exit($res);' | perl

tests/pull_compl.sh:    perl -i~ -pe "$1" foo

It sounds like the latter can be replaced with some sed usage, which we
already use in the test suite quite a bit.

Thanks!

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9

Attachment: signature.asc
Description: Digital signature

_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to