From b1ff94c0679c3167dbc84db70764714b7e25f0bb Mon Sep 17 00:00:00 2001 From: "andres.goens@tu-dresden.de" Date: Tue, 8 Dec 2015 08:35:43 +0000 Subject: [PATCH] Allow editor arguments when editing files externally. FossilOrigin-Name: 6911614adbc752e557e394000ae6a962f1df1de940be499949de0fc5a3787698 --- shelldap | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shelldap b/shelldap index 2d7882a..0a2e9fe 100755 --- a/shelldap +++ b/shelldap @@ -1628,7 +1628,10 @@ sub run_edit # checksum it, then open it in an editor # my $hash_orig = $self->chksum( $self->{'ldif_fname'} ); - system( $self->{'editor'}, $self->{'ldif_fname'} ) && + my @edit_args = split(' ',$self->{'editor'}); + push(@edit_args,$self->{'ldif_fname'}); + # system( $self->{'editor'}, $self->{'ldif_fname'} ) && + system( @edit_args ) && die "Unable to launch editor: $!\n"; # detect a total lack of change