]> err.no Git - moreutils/commitdiff
releasing version 0.13 0.13
authorjoeyh <joeyh>
Wed, 12 Jul 2006 16:55:15 +0000 (16:55 +0000)
committerjoeyh <joeyh>
Wed, 12 Jul 2006 16:55:15 +0000 (16:55 +0000)
debian/changelog
vipe

index e33983f65b0ea57724b70bb7634e929ef8bdc18b..6310a1595d70c2a0a445e7afa263a13b036d3d57 100644 (file)
@@ -1,8 +1,9 @@
-moreutils (0.13) UNRELEASED; urgency=low
+moreutils (0.13) unstable; urgency=low
 
   * ifdata: typo
+  * vipe: Support EDITOR or VISUAL that contains spaces and parameters.
 
- -- Joey Hess <joeyh@debian.org>  Thu, 29 Jun 2006 12:00:59 -0400
+ -- Joey Hess <joeyh@debian.org>  Wed, 12 Jul 2006 12:53:44 -0400
 
 moreutils (0.12) unstable; urgency=low
 
diff --git a/vipe b/vipe
index cbcffd82b51e7bde2cb8d22887bdd99e18706fc2..773eacfbd170003a846c46e3308a841464ca5f7b 100755 (executable)
--- a/vipe
+++ b/vipe
@@ -51,16 +51,16 @@ open(OUT, ">&STDOUT") || die "save stdout: $!";
 close STDOUT;
 open(STDOUT, ">/dev/tty") || die "reopen stdout: $!";
 
-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});
 }
-my $ret=system($editor, $tmp);
+my $ret=system(@editor, $tmp);
 if ($ret != 0) {
-       die "$editor exited nonzero, aborting\n";
+       die "@editor exited nonzero, aborting\n";
 }
 
 open (IN, $tmp) || die "$0: cannot read $tmp: $!\n";