View Issue Details

IDProjectCategoryView StatusLast Update
0000323My infrastructureGeneralpublic2025-09-28 13:27
Reporterdvl Assigned Todvl  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Summary0000323: ugly shell prompt in /jails/freshports
Description
[12:17 r720-02-ingress01 dvl ~] % sudo jexec freshports
[%F{cyan}%B%T%b%f %F{magenta}%m%b%f %F{green}%B%n%b%f %F{magenta}%B%~%b%f] %#%b%f sh
[%F{cyan}%B%T%b%f %F{magenta}%m%b%f %F{green}%B%n%b%f %F{magenta}%B%~%b%f] %#%b%f csh
root@freshports:/ # cd


I think it's because of the shell for root.
TagsNo tags attached.

Activities

dvl

2025-09-19 17:19

manager   ~0000418

Last edited: 2025-09-19 17:19

From https://bsd.network/web/@dvl/115232078421489442

Here is a puzzle.

when I become root, in most jails I've tried, it looks like this:

[17:07 r730-03 dvl ~] % sudo jexec empty
[%F{cyan}%B%T%b%f %F{magenta}%m%b%f %F{green}%B%n%b%f %F{magenta}%B%~%b%f] %#%b%f 


Or even from an ssh session:

[%F{cyan}%B%T%b%f %F{magenta}%m%b%f %F{green}%B%n%b%f %F{magenta}%B%~%b%f] %#%b%f echo $SHELL
/bin/sh


Problem is, I don't want that. And I cannot find where that prompt is set.

Oh wait, it's coming from my shell:

[17:09 empty dvl ~] % sudo su -l
# 

[17:11 r730-03 dvl ~] % echo $SHELL            
/usr/local/bin/zsh
[17:12 r730-03 dvl ~] % export PS1="no prompt "
no prompt sudo jexec empty
no prompt hostname
empty.int.unixathome.org
no prompt 


That seems to be ... annoying.

Ideas?

Issue History

Date Modified Username Field Change
2025-09-18 12:19 dvl New Issue
2025-09-18 12:19 dvl Status new => assigned
2025-09-18 12:19 dvl Assigned To => dvl
2025-09-19 17:19 dvl Note Added: 0000418
2025-09-19 17:19 dvl Note Edited: 0000418
2025-09-28 13:27 dvl Status assigned => closed
2025-09-28 13:27 dvl Resolution open => fixed