Get children process running within bash

pull/256/head
Julen Pardo 2018-05-29 12:58:39 +02:00
parent 42f77b303c
commit 61fd53d38c
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ full_command() {
ps "$(ps_command_flags)" "ppid command" |
sed "s/^ *//" |
grep "^${PANE_PID}" |
cut -d' ' -f2-
cut -d' ' -f2- |
tail -1
}
main() {