From: David Bremner Date: Wed, 20 Feb 2013 22:24:37 +0000 (-0400) Subject: nmbug: allow empty prefix X-Git-Tag: 0.16_rc1~193 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=16bf7b4b89b5ceb7f13ed318051ecd7c629d582b;ds=sidebyside nmbug: allow empty prefix Current code does not distinguish between an empty string in the NMBPREFIX environment variable and the variable being undefined. This makes it impossible to define an empty prefix, if, e.g. somebody wants to dump all of their tags with nmbug. --- diff --git a/devel/nmbug/nmbug b/devel/nmbug/nmbug index b9c70e4b..90d98b63 100755 --- a/devel/nmbug/nmbug +++ b/devel/nmbug/nmbug @@ -13,7 +13,7 @@ my $NMBGIT = $ENV{NMBGIT} || $ENV{HOME}.'/.nmbug'; $NMBGIT .= '/.git' if (-d $NMBGIT.'/.git'); -my $TAGPREFIX = $ENV{NMBPREFIX} || 'notmuch::'; +my $TAGPREFIX = defined($ENV{NMBPREFIX}) ? $ENV{NMBPREFIX} : 'notmuch::'; # for encoding