From: Brian Smith Date: Sat, 2 Aug 2008 08:45:52 +0000 (-0700) Subject: Soliciting text from an external editor should work with EDITORs that use arguments... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7f63223707f96a04ea96f7b224bfeacf74d0c817;p=cil.git Soliciting text from an external editor should work with EDITORs that use arguments (i.e. mate -w) --- diff --git a/lib/CIL/Utils.pm b/lib/CIL/Utils.pm index 47f7ada..5394e61 100644 --- a/lib/CIL/Utils.pm +++ b/lib/CIL/Utils.pm @@ -149,7 +149,8 @@ sub solicit { flock $fh, LOCK_UN; # run the editor - my $status = system($editor, $filename); + my @editor_args = split(/\s+/, $editor); + my $status = system(@editor_args, $filename); # check its return value if ( $status != 0 ) {