Changeset 2504 for trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Utils.pm
- Timestamp:
- 01/08/22 09:16:57 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Utils.pm
r2390 r2504 171 171 172 172 sub dump_read_temp_file { 173 my ($writecb, $readcb ) = @_;173 my ($writecb, $readcb, %options) = @_; 174 174 175 175 my ($fh, $filename) = tempfile(CLEANUP => 0); … … 180 180 my @stat = stat($filename); 181 181 while (1) { 182 my $cmd = ($ENV{EDITOR} || 'vi') . " $filename"; 182 my $cmd = ($ENV{EDITOR} || 'vi'); 183 $cmd .= " -c startinsert " if( $options{insert} ); 184 $cmd .= " $filename"; 183 185 warn "Running $cmd\n"; 184 186 if (system($cmd) == -1 ) {
Note: See TracChangeset
for help on using the changeset viewer.