Subject: | Deprecated (defined @) construct |
In perl 5.16, the
defined @array
is deprecated. The attached patch prevents a deprecation warning.
Subject: | xsh2.patch |
--- Completion.pm~ 2012-02-25 10:25:58.000000000 +0100
+++ Completion.pm 2013-03-02 21:03:24.080929808 +0100
@@ -123,7 +123,7 @@
if (index($word,$pdelim)>=0) {
return grep -x,complete_filename($type,$word);
}
- unless (defined @PATH_HASH) {
+ unless (@PATH_HASH) {
rehash_path_hash();
}
return grep {index($_,$word)==0} @PATH_HASH;