+moreutils (0.14) unstable; urgency=low
+
+ * vidir: Also support EDITOR or VISUAL that contains spaces and parameters.
+
+ -- Joey Hess <joeyh@debian.org> Wed, 12 Jul 2006 13:35:49 -0400
+
moreutils (0.13) unstable; urgency=low
* ifdata: typo
@dir=();
close OUT;
-my $editor="vi";
+my @editor="vi";
if (exists $ENV{EDITOR}) {
- $editor=$ENV{EDITOR};
+ @editor=split(' ', $ENV{EDITOR});
}
if (exists $ENV{VISUAL}) {
- $editor=$ENV{VISUAL};
+ @editor=split(' ', $ENV{VISUAL});
}
-$ret=system($editor, $tmp);
+$ret=system(@editor, $tmp);
if ($ret != 0) {
- die "$editor exited nonzero, aborting\n";
+ die "@editor exited nonzero, aborting\n";
}
open (IN, $tmp->filename) || die "$0: cannot read ".$tmp->filename.": $!\n";