Export to GitHub

tircd - issue #14

Check for ~/.tircd if no config specified


Posted on Jan 8, 2009 by Massive Monkey

Just a suggested enhancement something like:

  • my $config_file = $ARGV[0] || 'tircd.cfg';
  • my $config_file = $ARGV[0] ||
  • -e 'tircd.cfg' ? 'tircd.cfg' : '~/.tircd';

Of course, expanding the ~ is the hard part. Maybe check for $ENV{HOME} and default to pwd if that isn't found? File::Glob can do it and is core in 5.10 but I'm not sure how long it has been core.

Mike

Comment #1

Posted on Jan 8, 2009 by Grumpy Bear

Good idea, I'll look at options and roll this functionality into the next release.

Thanks!

Comment #2

Posted on Jan 9, 2009 by Grumpy Bear

This change has been included in r11 / v0.5

Status: Fixed

Labels:
Type-Enhancement Priority-Medium