diff options
author | joeyh <joeyh> | 2006-07-12 16:55:15 +0000 |
---|---|---|
committer | joeyh <joeyh> | 2006-07-12 16:55:15 +0000 |
commit | 7d38acc76a549d06e2d90bae6bb814173799c461 (patch) | |
tree | f810872a385937e25a53768403c4abbe9263ff2c /vipe | |
parent | 0f8137c0a9a628206a23d343573debb544c4a811 (diff) | |
download | moreutils-7d38acc76a549d06e2d90bae6bb814173799c461.tar.gz |
releasing version 0.130.13
Diffstat (limited to 'vipe')
-rwxr-xr-x | vipe | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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"; |