# HG changeset patch # User HackBot # Date 1462782772 0 # Node ID faebf4569ba3779ecb0382f874cdb8e9cbb5bda9 # Parent ea34842a51f6a5f02ca2447e4496f425435a8877 `` echo $\'#!/bin/sh\\nexec perl -e\\\'\'\'open$I,"<","share/mtg/allsets.txt"or die$!;$/=""; @c=grep{/(?i:$ARGV[0])/}<$I>; print $c[rand($c)];\'\\\'\' "$1"\' > bin/random-card && chmod -v a+x bin/random-card diff -r ea34842a51f6 -r faebf4569ba3 bin/random-card --- a/bin/random-card Mon May 09 08:32:26 2016 +0000 +++ b/bin/random-card Mon May 09 08:32:52 2016 +0000 @@ -1,2 +1,2 @@ #!/bin/sh -exec perl -e'open$I,"<","share/mtg/allsets.txt"or die$!;$/=""; @c=grep{/(?:$ARGV[0])/}<$I>; print $c[rand($c)];' "$1" +exec perl -e'open$I,"<","share/mtg/allsets.txt"or die$!;$/=""; @c=grep{/(?i:$ARGV[0])/}<$I>; print $c[rand($c)];' "$1"