From 3de0317294bad0e765c97f6f5486f200ae2f6a33 Mon Sep 17 00:00:00 2001 From: joeyh Date: Wed, 12 Jul 2006 17:36:43 +0000 Subject: [PATCH] releasing version 0.14 --- debian/changelog | 6 ++++++ vidir | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index 6310a15..550cbfe 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +moreutils (0.14) unstable; urgency=low + + * vidir: Also support EDITOR or VISUAL that contains spaces and parameters. + + -- Joey Hess Wed, 12 Jul 2006 13:35:49 -0400 + moreutils (0.13) unstable; urgency=low * ifdata: typo 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"; -- 2.39.5