summaryrefslogtreecommitdiff
path: root/vidir
diff options
context:
space:
mode:
authorjoeyh <joeyh>2006-07-12 17:36:43 +0000
committerjoeyh <joeyh>2006-07-12 17:36:43 +0000
commit3de0317294bad0e765c97f6f5486f200ae2f6a33 (patch)
treed2e1c3d99fc34184599de335fba985673e6600e9 /vidir
parent7d38acc76a549d06e2d90bae6bb814173799c461 (diff)
downloadmoreutils-3de0317294bad0e765c97f6f5486f200ae2f6a33.tar.gz
releasing version 0.140.14
Diffstat (limited to 'vidir')
-rwxr-xr-xvidir10
1 files changed, 5 insertions, 5 deletions
diff --git a/vidir b/vidir
index 037dd5a..3e2f83a 100755
--- a/vidir
+++ b/vidir
@@ -99,16 +99,16 @@ foreach (@dir) {
@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";