Expand description
The POSIX tab wrapper, the shell expressions it embeds, and the terminal walk and tab commands.
Enums§
Constants§
- BOOT_
ID_ EXPR_ POSIX - The boot id as the wrapper writes it (spec Pairing, lines 322-331). POSIX
shtext valid under dash; embedded as$(<EXPR>)bywrapper_script_posix. - PATH_
ORDER 🔒 - The four POSIX terminals in the spec’s PATH order.
- STARTTIME_
EXPR_ POSIX - Field 22 of
/proc/$$/stat: the 20th token after the last)($$inside$(...)is the shell’s pid; measured under dash).
Functions§
- process_
name 🔒 - quote_
sh - Single-quote a value for POSIX
sh: every'becomes'\''. - select_
terminal - FIRST the terminal found by walking the parent process names (nearest first), and ONLY when no
parent matches the first of the four on PATH, in the spec’s order. Windows:
wtwhen on PATH. - system_
parent_ chain - The names of this process’s ancestors, nearest first (the parent’s basename of
/proc/<pid>/cmdline’s first element on Linux,ps -o comm=on macOS; empty elsewhere). - tab_
command - The tab command, program first (spec Launcher step 4).
mate-terminalandxfce4-terminalsplit the ONE-estring withg_shell_parse_argv, so that element is the script path single-quoted with every'written as'\'';gnome-terminalandkonsoletake argv elements and get the raw path. - terminal_
for_ 🔒process - wrapper_
script_ posix - The bash tab wrapper. It writes
tui-pid($$:<boot_id>:<starttime>, no newline) at its start andtui-exited(epoch ms) from its EXIT trap, both under aumask 077subshell so the sentinels are 0600 without changing the umaskopencoderuns under.