Files
remind/scripts/rem
T
2007-08-30 17:33:26 -04:00

24 lines
445 B
Perl
Executable File

#!/usr/bin/perl
eval 'exec perl -S $0 ${1+"$@"}'
if $running_under_some_shell;
use strict;
use warnings;
my $reminder_file = $ENV{'DOTREMINDERS'} || $ENV{'HOME'} . '/.reminders';
my @cmd;
my $thing;
push(@cmd, 'remind');
while ($thing = shift(@ARGV)) {
last unless ($thing =~ /^-/);
push(@cmd, $thing);
}
push(@cmd, $reminder_file);
push(@cmd, $thing) if (defined($thing) && ($thing ne ''));
push(@cmd, @ARGV);
exec(@cmd);