# HG changeset patch # User Andr Goens # Date 1449563743 28800 # Node ID 0ccbd586bfc61586195edad298ff87634739e994 # Parent 377bd38ab38c9c4bd5b8c327eab8101afbba8e44 Allow editor arguments when editing files externally. diff -r 377bd38ab38c -r 0ccbd586bfc6 shelldap --- a/shelldap Wed Mar 04 11:21:00 2015 -0800 +++ b/shelldap Tue Dec 08 00:35:43 2015 -0800 @@ -1628,7 +1628,10 @@ # 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