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


Commits:
263693c9 by Beatriz Rizental at 2025-06-09T15:16:11+02:00
Bug 40084: Always use bash for the debug terminal

- - - - -


1 changed file:

- lib/RBM.pm


Changes:

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



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/rbm/-/commit/263693c984a467d971bb7b2c1cdeb6f1800eab2f

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/rbm/-/commit/263693c984a467d971bb7b2c1cdeb6f1800eab2f
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tbb-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to