After executing a command for a bash terminal application the window closes. This can happen when the terminal is opened by a automatism like a keybinding (e.g. in i3wm/i3) or invoked by a script.
E.g. Let's say I want to create a keybinding for xprop (terminal application which shows the window id). In i3wm (aka i3) this is usually done by:
bindsym $mod+F8 exec i3-sensible-terminal -e 'xprop'
However, I cannot read the output because after executing the command – and indicating/clicking on the desired window – the terminal-window closes immediately.
; bashafter the command (i.e.:bindsym $mod+F8 exec i3-sensible-terminal -e 'xprop; bash') – it doesen't work.