Allow editor arguments when editing files externally.
FossilOrigin-Name: 6911614adbc752e557e394000ae6a962f1df1de940be499949de0fc5a3787698
This commit is contained in:
parent
1685c4bbac
commit
b1ff94c067
1 changed files with 4 additions and 1 deletions
5
shelldap
5
shelldap
|
|
@ -1628,7 +1628,10 @@ sub run_edit
|
||||||
# checksum it, then open it in an editor
|
# checksum it, then open it in an editor
|
||||||
#
|
#
|
||||||
my $hash_orig = $self->chksum( $self->{'ldif_fname'} );
|
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";
|
die "Unable to launch editor: $!\n";
|
||||||
|
|
||||||
# detect a total lack of change
|
# detect a total lack of change
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue