Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

  (email not shown publicly)
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Thursday December 07, 2006
05:41 AM

Today's shell script: prove

[ #31836 ]

At work, almost every single time I run the prove utility, I type prove -l t/. I got tired of typing that. The following shell script in my bin/ seems silly, but it's really scratched an itch:


case "$1" in
    "") /usr/local/bin/prove -l t/ ;; # no arguments
    * ) /usr/local/bin/prove $*    ;; # Pass 'em straight through

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Sorry, but I can't resist golfing^Wtinkering with shell scripts...


      [ $# == 0 ] && set -- -l t/
      exec /usr/local/bin/prove "$@"

    $# is $#ARGV, more or less. Also, it's always better to use "$@" instead of $* because one day, you'll feed that sucker a filename with a space in. And it won't break with the former.