boklm pushed to branch main at The Tor Project / Applications / RBM

Commits:

1 changed file:

Changes:

  • lib/RBM.pm
    ... ... @@ -1291,9 +1291,10 @@ sub build_run {
    1291 1291
                     if (project_config($project, 'debug', $options)) {
    
    1292 1292
                         print STDERR $error, "\nOpening debug shell\n";
    
    1293 1293
                         print STDERR "Warning: build files will be removed when you exit this shell.\n";
    
    1294
    +                    my $original_term = shell_quote($ENV{TERM} || 'dumb');
    
    1294 1295
                         my $cmd = project_config($project, "remote_exec", {
    
    1295 1296
                                 %$options,
    
    1296
    -                            exec_cmd => "cd $remote_tmp_src; PS1='debug-$project\$ ' \${SHELL-/bin/bash}",
    
    1297
    +                            exec_cmd => "cd $remote_tmp_src; TERM=$original_term PS1='debug-$project\$ ' /bin/bash",
    
    1297 1298
                                 exec_name => "debug-$s",
    
    1298 1299
                                 exec_as_root => $scripts_root{$s},
    
    1299 1300
                                 interactive => 1,