'_tmp/cat2' -> '/bin/cat'
[1/65] build-stamp-cpp _build/git-commit.txt _gen/cpp/build_stamp.h _gen/cpp/build_stamp.cc
[2/65] make-pystub _bin/shwrap/asdl_main asdl/asdl_main.py asdl/ast.py asdl/front_end.py asdl/gen_cpp.py asdl/gen_python.py asdl/util.py asdl/visitor.py
[3/65] make-pystub _bin/shwrap/optview_gen core/optview_gen.py frontend/option_def.py
[4/65] make-pystub _bin/shwrap/embedded_file_gen cpp/embedded_file_gen.py mycpp/mylib.py pylib/collections_.py
[5/65] make-pystub _bin/shwrap/consts_gen frontend/consts_gen.py _devbuild/gen/hnode_asdl.py _devbuild/gen/types_asdl.py asdl/ast.py asdl/gen_cpp.py asdl/pybase.py asdl/runtime.py asdl/util.py asdl/visitor.py frontend/builtin_def.py frontend/id_kind_def.py frontend/option_def.py mycpp/mops.py mycpp/mylib.py pylib/collections_.py
[6/65] make-pystub _bin/shwrap/flag_gen frontend/flag_gen.py _devbuild/gen/hnode_asdl.py _devbuild/gen/id_kind_asdl.py _devbuild/gen/runtime_asdl.py _devbuild/gen/syntax_asdl.py _devbuild/gen/value_asdl.py asdl/pybase.py asdl/runtime.py core/error.py core/num.py frontend/args.py frontend/flag_def.py frontend/flag_spec.py frontend/option_def.py mycpp/mops.py mycpp/mylib.py pylib/collections_.py
[7/65] optview_gen > _gen/core/optview.h
[8/65] asdl_main cpp --no-pretty-print-methods asdl/hnode.asdl _gen/asdl/hnode.asdl _gen/asdl/hnode.asdl_debug.py
[9/65] make-pystub _bin/shwrap/option_gen frontend/option_gen.py asdl/ast.py frontend/builtin_def.py frontend/option_def.py
[10/65] embedded_file_gen _devbuild/help/data-errors _devbuild/help/data-front-end _devbuild/help/data-j8-notation _devbuild/help/help _devbuild/help/oils-usage _devbuild/help/osh-builtin-cmd _devbuild/help/osh-chapters _devbuild/help/osh-cmd-lang _devbuild/help/osh-front-end _devbuild/help/osh-mini-lang _devbuild/help/osh-option _devbuild/help/osh-osh-assign _devbuild/help/osh-plugin _devbuild/help/osh-special-var _devbuild/help/osh-stdlib _devbuild/help/osh-type-method _devbuild/help/osh-usage _devbuild/help/osh-word-lang _devbuild/help/ysh-builtin-cmd _devbuild/help/ysh-builtin-func _devbuild/help/ysh-chapters _devbuild/help/ysh-cmd-lang _devbuild/help/ysh-expr-lang _devbuild/help/ysh-front-end _devbuild/help/ysh-mini-lang _devbuild/help/ysh-option _devbuild/help/ysh-plugin _devbuild/help/ysh-special-var _devbuild/help/ysh-stdlib _devbuild/help/ysh-type-method _devbuild/help/ysh-usage _devbuild/help/ysh-word-lang _devbuild/help/ysh-ysh-cmd stdlib/funcs.ysh stdlib/methods.ysh stdlib/osh/bash-strict.sh stdlib/osh/byo-server.sh stdlib/osh/no-quotes.sh stdlib/osh/task-five.sh stdlib/osh/two.sh stdlib/prelude.ysh stdlib/testing.ysh stdlib/ysh/args.ysh stdlib/ysh/list.ysh stdlib/ysh/math.ysh stdlib/ysh/stream.ysh stdlib/ysh/table.ysh stdlib/ysh/yblocks.ysh _gen/bin/text_files.cc
[11/65] asdl_main cpp  core/runtime.asdl _gen/core/runtime.asdl _gen/core/runtime.asdl_debug.py
[12/65] asdl_main cpp  core/value.asdl _gen/core/value.asdl _gen/core/value.asdl_debug.py
[13/65] asdl_main cpp  data_lang/nil8.asdl _gen/data_lang/nil8.asdl _gen/data_lang/nil8.asdl_debug.py
[14/65] consts_gen cpp _gen/frontend/id_kind.asdl
[15/65] make-pystub _bin/shwrap/signal_gen frontend/signal_gen.py frontend/signal_def.py
[16/65] asdl_main cpp  display/pretty.asdl _gen/display/pretty.asdl _gen/display/pretty.asdl_debug.py
[17/65] consts_gen cpp _gen/frontend/option.asdl
[18/65] consts_gen cpp-consts _gen/frontend/consts
[19/65] signal_gen cpp _gen/frontend/signal
[20/65] make-pystub _bin/shwrap/mycpp_main mycpp/mycpp_main.py mycpp/ir_pass.py mycpp/const_pass.py mycpp/cppgen_pass.py mycpp/crash.py mycpp/debug_pass.py mycpp/control_flow_pass.py mycpp/format_strings.py mycpp/pass_state.py mycpp/util.py mycpp/visitor.py
[21/65] flag_gen cpp _gen/frontend/arg_types
[22/65] asdl_main cpp --no-pretty-print-methods frontend/types.asdl _gen/frontend/types.asdl _gen/frontend/types.asdl_debug.py
[23/65] cxx dbg '' _gen/cpp/build_stamp.cc _build/obj/cxx-dbg/_gen/cpp/build_stamp.o
[24/65] make-pystub _bin/shwrap/grammar_gen ysh/grammar_gen.py _devbuild/gen/hnode_asdl.py _devbuild/gen/id_kind_asdl.py _devbuild/gen/runtime_asdl.py _devbuild/gen/syntax_asdl.py _devbuild/gen/types_asdl.py _devbuild/gen/value_asdl.py asdl/pybase.py asdl/runtime.py core/alloc.py core/error.py core/num.py core/optview.py frontend/builtin_def.py frontend/consts.py frontend/id_kind_def.py frontend/lexer.py frontend/lexer_def.py frontend/match.py frontend/option_def.py frontend/reader.py mycpp/mops.py mycpp/mylib.py pgen2/grammar.py pgen2/parse.py pgen2/pgen.py pgen2/pnode.py pgen2/token.py pgen2/tokenize.py pylib/collections_.py
[25/65] make-pystub _bin/shwrap/arith_parse_gen osh/arith_parse_gen.py _devbuild/gen/hnode_asdl.py _devbuild/gen/id_kind_asdl.py _devbuild/gen/nil8_asdl.py _devbuild/gen/pretty_asdl.py _devbuild/gen/runtime_asdl.py _devbuild/gen/syntax_asdl.py _devbuild/gen/types_asdl.py _devbuild/gen/value_asdl.py asdl/format.py asdl/pybase.py asdl/runtime.py core/error.py core/num.py data_lang/j8.py data_lang/j8_lite.py data_lang/pyj8.py display/ansi.py display/pp_value.py display/pretty.py display/ui.py frontend/builtin_def.py frontend/consts.py frontend/id_kind_def.py frontend/lexer.py frontend/lexer_def.py frontend/location.py frontend/match.py frontend/option_def.py mycpp/mops.py mycpp/mylib.py osh/arith_parse.py osh/tdop.py osh/word_.py pylib/cgi.py pylib/collections_.py
[26/65] asdl_main cpp  frontend/syntax.asdl _gen/frontend/syntax.asdl _gen/frontend/syntax.asdl_debug.py
[27/65] cxx dbg '' _gen/bin/text_files.cc _build/obj/cxx-dbg/_gen/bin/text_files.o
[28/65] arith-parse-gen > _gen/osh/arith_parse.cc
[29/65] grammar_gen cpp ysh/grammar.pgen2 _gen/ysh
[30/65] cxx dbg '' _gen/frontend/id_kind.asdl.cc _build/obj/cxx-dbg/_gen/frontend/id_kind.asdl.o
[31/65] cxx dbg '' _gen/display/pretty.asdl.cc _build/obj/cxx-dbg/_gen/display/pretty.asdl.o
[32/65] cxx dbg '' mycpp/bump_leak_heap.cc _build/obj/cxx-dbg/mycpp/bump_leak_heap.o
[33/65] cxx dbg '' cpp/data_lang.cc _build/obj/cxx-dbg/cpp/data_lang.o
[34/65] cxx dbg '' _gen/core/runtime.asdl.cc _build/obj/cxx-dbg/_gen/core/runtime.asdl.o
[35/65] cxx dbg '' mycpp/gc_mops.cc _build/obj/cxx-dbg/mycpp/gc_mops.o
[36/65] cxx dbg '' _gen/core/value.asdl.cc _build/obj/cxx-dbg/_gen/core/value.asdl.o
[37/65] cxx dbg '' mycpp/gc_builtins.cc _build/obj/cxx-dbg/mycpp/gc_builtins.o
[38/65] cxx dbg '' mycpp/hash.cc _build/obj/cxx-dbg/mycpp/hash.o
[39/65] cxx dbg '' mycpp/gc_mylib.cc _build/obj/cxx-dbg/mycpp/gc_mylib.o
[40/65] cxx dbg '' mycpp/mark_sweep_heap.cc _build/obj/cxx-dbg/mycpp/mark_sweep_heap.o
[41/65] cxx dbg '' cpp/fanos_shared.c _build/obj/cxx-dbg/cpp/fanos_shared.o
[42/65] cxx dbg '' cpp/fanos.cc _build/obj/cxx-dbg/cpp/fanos.o
[43/65] cxx dbg '' _gen/frontend/syntax.asdl.cc _build/obj/cxx-dbg/_gen/frontend/syntax.asdl.o
[44/65] cxx dbg '' cpp/core.cc _build/obj/cxx-dbg/cpp/core.o
[45/65] cxx dbg '' cpp/frontend_pyreadline.cc _build/obj/cxx-dbg/cpp/frontend_pyreadline.o
[46/65] cxx dbg '' cpp/frontend_flag_spec.cc _build/obj/cxx-dbg/cpp/frontend_flag_spec.o
[47/65] cxx dbg '' cpp/libc.cc _build/obj/cxx-dbg/cpp/libc.o
[48/65] cxx dbg '' cpp/frontend_match.cc _build/obj/cxx-dbg/cpp/frontend_match.o
[49/65] cxx dbg '' cpp/osh_tdop.cc _build/obj/cxx-dbg/cpp/osh_tdop.o
[50/65] cxx dbg '' cpp/osh.cc _build/obj/cxx-dbg/cpp/osh.o
[51/65] cxx dbg '' cpp/pgen2.cc _build/obj/cxx-dbg/cpp/pgen2.o
[52/65] cxx dbg '' cpp/pylib.cc _build/obj/cxx-dbg/cpp/pylib.o
[53/65] cxx dbg '' _gen/frontend/arg_types.cc _build/obj/cxx-dbg/_gen/frontend/arg_types.o
[54/65] cxx dbg '' _gen/data_lang/nil8.asdl.cc _build/obj/cxx-dbg/_gen/data_lang/nil8.asdl.o
[55/65] cxx dbg '' cpp/stdlib.cc _build/obj/cxx-dbg/cpp/stdlib.o
[56/65] cxx dbg '' _gen/frontend/consts.cc _build/obj/cxx-dbg/_gen/frontend/consts.o
[57/65] cxx dbg '' _gen/frontend/signal.cc _build/obj/cxx-dbg/_gen/frontend/signal.o
[58/65] cxx dbg '' mycpp/gc_str.cc _build/obj/cxx-dbg/mycpp/gc_str.o
[59/65] cxx dbg '' _gen/osh/arith_parse.cc _build/obj/cxx-dbg/_gen/osh/arith_parse.o
[60/65] cxx dbg '' _gen/frontend/help_meta.cc _build/obj/cxx-dbg/_gen/frontend/help_meta.o
[61/65] cxx dbg '' _gen/ysh/grammar_tables.cc _build/obj/cxx-dbg/_gen/ysh/grammar_tables.o
[62/65] gen-oils-for-unix oils_for_unix _gen/bin/oils_for_unix.mycpp cpp/preamble.h asdl/format.py asdl/runtime.py bin/oils_for_unix.py builtin/assign_osh.py builtin/bracket_osh.py builtin/completion_osh.py builtin/completion_ysh.py builtin/dirs_osh.py builtin/error_ysh.py builtin/func_eggex.py builtin/func_hay.py builtin/func_misc.py builtin/hay_ysh.py builtin/io_osh.py builtin/io_ysh.py builtin/json_ysh.py builtin/meta_osh.py builtin/method_dict.py builtin/method_io.py builtin/method_list.py builtin/method_other.py builtin/method_str.py builtin/misc_osh.py builtin/module_ysh.py builtin/printf_osh.py builtin/process_osh.py builtin/pure_osh.py builtin/pure_ysh.py builtin/read_osh.py builtin/readline_osh.py builtin/trap_osh.py core/alloc.py core/comp_ui.py core/completion.py core/dev.py core/error.py core/executor.py core/main_loop.py core/num.py core/process.py core/shell.py core/state.py core/util.py core/vm.py data_lang/j8.py data_lang/j8_lite.py display/ansi.py display/pp_value.py display/pretty.py display/ui.py frontend/args.py frontend/flag_util.py frontend/lexer.py frontend/location.py frontend/parse_lib.py frontend/reader.py frontend/typed_args.py osh/arith_parse.py osh/bool_parse.py osh/braces.py osh/cmd_eval.py osh/cmd_parse.py osh/glob_.py osh/history.py osh/prompt.py osh/sh_expr_eval.py osh/split.py osh/string_ops.py osh/tdop.py osh/word_.py osh/word_compile.py osh/word_eval.py osh/word_parse.py pgen2/parse.py pylib/cgi.py pylib/os_path.py tools/fmt.py tools/ysh_ify.py ysh/expr_eval.py ysh/expr_parse.py ysh/expr_to_ast.py ysh/func_proc.py ysh/regex_translate.py ysh/val_ops.py
	mycpp: LOADING asdl/format.py asdl/runtime.py bin/oils_for_unix.py builtin/assign_osh.py builtin/bracket_osh.py builtin/completion_osh.py builtin/completion_ysh.py builtin/dirs_osh.py builtin/error_ysh.py builtin/func_eggex.py builtin/func_hay.py builtin/func_misc.py builtin/hay_ysh.py builtin/io_osh.py builtin/io_ysh.py builtin/json_ysh.py builtin/meta_osh.py builtin/method_dict.py builtin/method_io.py builtin/method_list.py builtin/method_other.py builtin/method_str.py builtin/misc_osh.py builtin/module_ysh.py builtin/printf_osh.py builtin/process_osh.py builtin/pure_osh.py builtin/pure_ysh.py builtin/read_osh.py builtin/readline_osh.py builtin/trap_osh.py core/alloc.py core/comp_ui.py core/completion.py core/dev.py core/error.py core/executor.py core/main_loop.py core/num.py core/process.py core/shell.py core/state.py core/util.py core/vm.py data_lang/j8.py data_lang/j8_lite.py display/ansi.py display/pp_value.py display/pretty.py display/ui.py frontend/args.py frontend/flag_util.py frontend/lexer.py frontend/location.py frontend/parse_lib.py frontend/reader.py frontend/typed_args.py osh/arith_parse.py osh/bool_parse.py osh/braces.py osh/cmd_eval.py osh/cmd_parse.py osh/glob_.py osh/history.py osh/prompt.py osh/sh_expr_eval.py osh/split.py osh/string_ops.py osh/tdop.py osh/word_.py osh/word_compile.py osh/word_eval.py osh/word_parse.py pgen2/parse.py pylib/cgi.py pylib/os_path.py tools/fmt.py tools/ysh_ify.py ysh/expr_eval.py ysh/expr_parse.py ysh/expr_to_ast.py ysh/func_proc.py ysh/regex_translate.py ysh/val_ops.py
	mycpp pass: IR
	mycpp pass: CONST
	mycpp pass: FORWARD DECL
	mycpp pass: PROTOTYPES
	mycpp pass: CONTROL FLOW
	mycpp pass: IMPL
WARNING: builtin.assign_osh._PrintVariables() has 28 stack roots. Consider refactoring this function.
WARNING: builtin.io_ysh.Pp.Run() has 21 stack roots. Consider refactoring this function.
WARNING: builtin.method_str.Replace.Call() has 26 stack roots. Consider refactoring this function.
WARNING: builtin.printf_osh.Printf._Percent() has 21 stack roots. Consider refactoring this function.
WARNING: builtin.printf_osh.Printf.Run() has 17 stack roots. Consider refactoring this function.
WARNING: core.completion.RootCompleter.Matches() has 31 stack roots. Consider refactoring this function.
WARNING: osh.cmd_parse.CommandParser._MaybeExpandAliases() has 17 stack roots. Consider refactoring this function.
WARNING: osh.history.Evaluator.Eval() has 19 stack roots. Consider refactoring this function.
WARNING: osh.word_eval.AbstractWordEvaluator._ApplyTestOp() has 17 stack roots. Consider refactoring this function.
WARNING: tools.ysh_ify.YshPrinter.DoCommand() has 18 stack roots. Consider refactoring this function.
WARNING: ysh.expr_eval.ExprEvaluator._EvalExpr() has 18 stack roots. Consider refactoring this function.
WARNING: ysh.expr_parse._PushYshTokens() has 27 stack roots. Consider refactoring this function.
WARNING: ysh.expr_to_ast.Transformer.Expr() has 18 stack roots. Consider refactoring this function.
WARNING: builtin.completion_osh.SpecBuilder.Build() has 18 stack roots. Consider refactoring this function.
WARNING: core.shell.Main() has 109 stack roots. Consider refactoring this function.
[63/65] cxx dbg '' _gen/bin/oils_for_unix.mycpp.cc _build/obj/cxx-dbg/_gen/bin/oils_for_unix.mycpp.o
[64/65] LINK cxx dbg '' _bin/cxx-dbg/oils-for-unix _build/obj/cxx-dbg/_gen/bin/oils_for_unix.mycpp.o _build/obj/cxx-dbg/_gen/bin/text_files.o _build/obj/cxx-dbg/_gen/core/runtime.asdl.o _build/obj/cxx-dbg/_gen/core/value.asdl.o _build/obj/cxx-dbg/_gen/cpp/build_stamp.o _build/obj/cxx-dbg/cpp/core.o _build/obj/cxx-dbg/cpp/data_lang.o _build/obj/cxx-dbg/cpp/fanos.o _build/obj/cxx-dbg/cpp/fanos_shared.o _build/obj/cxx-dbg/cpp/frontend_flag_spec.o _build/obj/cxx-dbg/cpp/frontend_match.o _build/obj/cxx-dbg/cpp/frontend_pyreadline.o _build/obj/cxx-dbg/cpp/libc.o _build/obj/cxx-dbg/cpp/osh.o _build/obj/cxx-dbg/cpp/osh_tdop.o _build/obj/cxx-dbg/cpp/pgen2.o _build/obj/cxx-dbg/cpp/pylib.o _build/obj/cxx-dbg/cpp/stdlib.o _build/obj/cxx-dbg/_gen/data_lang/nil8.asdl.o _build/obj/cxx-dbg/_gen/display/pretty.asdl.o _build/obj/cxx-dbg/_gen/frontend/arg_types.o _build/obj/cxx-dbg/_gen/frontend/consts.o _build/obj/cxx-dbg/_gen/frontend/help_meta.o _build/obj/cxx-dbg/_gen/frontend/id_kind.asdl.o _build/obj/cxx-dbg/_gen/frontend/signal.o _build/obj/cxx-dbg/_gen/frontend/syntax.asdl.o _build/obj/cxx-dbg/mycpp/bump_leak_heap.o _build/obj/cxx-dbg/mycpp/gc_builtins.o _build/obj/cxx-dbg/mycpp/gc_mops.o _build/obj/cxx-dbg/mycpp/gc_mylib.o _build/obj/cxx-dbg/mycpp/gc_str.o _build/obj/cxx-dbg/mycpp/hash.o _build/obj/cxx-dbg/mycpp/mark_sweep_heap.o _build/obj/cxx-dbg/_gen/osh/arith_parse.o _build/obj/cxx-dbg/_gen/ysh/grammar_tables.o
[65/65] SYMLINK _bin/cxx-dbg oils-for-unix osh
'osh' -> 'oils-for-unix'
run_snippet bash fgproc -
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   1772    1771       1       1       1 python2
   1773    1772       1       1       1 time-helper
   1774    1773       1       1       1 bash
   1775    1774       1       1       1 bash
   1776    1775       1       1       1 ps

run_snippet bash fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1783 sh
      7       1       1       1    1783 bash
     20       7       1       1    1783 bash
   1305      20       1       1    1783 python2
   1306    1305       1       1    1783 time-helper
   1307    1306       1       1    1783 bash
   1771    1307       1       1    1783 bash
   1779    1771       1       1    1783 python2
   1780    1779       1       1    1783 time-helper
   1781    1780       1       1    1783 bash
   1782    1781    1782       1    1783 bash
   1783    1782    1783       1    1783 ps

run_snippet bash bgproc -
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   1786    1771       1       1       1 python2
   1787    1786       1       1       1 time-helper
   1788    1787       1       1       1 bash
   1789    1788       1       1       1 bash
   1790    1789       1       1       1 ps

run_snippet bash bgproc yes
[1] 1797
[1]+  Done                    ps -o $PS_COLS
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1796 sh
      7       1       1       1    1796 bash
     20       7       1       1    1796 bash
   1305      20       1       1    1796 python2
   1306    1305       1       1    1796 time-helper
   1307    1306       1       1    1796 bash
   1771    1307       1       1    1796 bash
   1793    1771       1       1    1796 python2
   1794    1793       1       1    1796 time-helper
   1795    1794       1       1    1796 bash
   1796    1795    1796       1    1796 bash
   1797    1796    1797       1    1796 ps

run_snippet bash fgpipe -
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   1800    1771       1       1       1 python2
   1801    1800       1       1       1 time-helper
   1802    1801       1       1       1 bash
   1803    1802       1       1       1 bash
   1804    1803       1       1       1 ps
   1805    1803       1       1       1 cat
   1806    1803       1       1       1 cat2

run_snippet bash fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1813 sh
      7       1       1       1    1813 bash
     20       7       1       1    1813 bash
   1305      20       1       1    1813 python2
   1306    1305       1       1    1813 time-helper
   1307    1306       1       1    1813 bash
   1771    1307       1       1    1813 bash
   1809    1771       1       1    1813 python2
   1810    1809       1       1    1813 time-helper
   1811    1810       1       1    1813 bash
   1812    1811    1812       1    1813 bash
   1813    1812    1813       1    1813 ps
   1814    1812    1813       1    1813 cat
   1815    1812    1813       1    1813 cat2

run_snippet bash fgpipe-lastpipe -
[foreground pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
7       1       1       1       1 bash
20       7       1       1       1 bash
1305      20       1       1       1 python2
1306    1305       1       1       1 time-helper
1307    1306       1       1       1 bash
1771    1307       1       1       1 bash
1818    1771       1       1       1 python2
1819    1818       1       1       1 time-helper
1820    1819       1       1       1 bash
1821    1820       1       1       1 bash
1822    1821       1       1       1 ps
1823    1821       1       1       1 cat2
1824    1821       1       1       1 bash

run_snippet bash fgpipe-lastpipe yes
[foreground pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    1831 sh
7       1       1       1    1831 bash
20       7       1       1    1831 bash
1305      20       1       1    1831 python2
1306    1305       1       1    1831 time-helper
1307    1306       1       1    1831 bash
1771    1307       1       1    1831 bash
1827    1771       1       1    1831 python2
1828    1827       1       1    1831 time-helper
1829    1828       1       1    1831 bash
1830    1829    1830       1    1831 bash
1831    1830    1831       1    1831 ps
1832    1830    1831       1    1831 cat2
1833    1830    1831       1    1831 bash

run_snippet bash bgpipe -
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   1836    1771       1       1       1 python2
   1837    1836       1       1       1 time-helper
   1838    1837       1       1       1 bash
   1839    1838       1       1       1 bash
   1840    1839       1       1       1 ps
   1841    1839       1       1       1 cat
   1842    1839       1       1       1 cat2

run_snippet bash bgpipe yes
[1] 1851
[1]+  Done                    ps -o $PS_COLS | cat | _tmp/cat2
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1848 sh
      7       1       1       1    1848 bash
     20       7       1       1    1848 bash
   1305      20       1       1    1848 python2
   1306    1305       1       1    1848 time-helper
   1307    1306       1       1    1848 bash
   1771    1307       1       1    1848 bash
   1845    1771       1       1    1848 python2
   1846    1845       1       1    1848 time-helper
   1847    1846       1       1    1848 bash
   1848    1847    1848       1    1848 bash
   1849    1848    1849       1    1848 ps
   1850    1848    1849       1    1848 cat
   1851    1848    1849       1    1848 cat2

run_snippet bash bgpipe-lastpipe -
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
7       1       1       1       1 bash
20       7       1       1       1 bash
1305      20       1       1       1 python2
1306    1305       1       1       1 time-helper
1307    1306       1       1       1 bash
1771    1307       1       1       1 bash
1854    1771       1       1       1 python2
1855    1854       1       1       1 time-helper
1856    1855       1       1       1 bash
1857    1856       1       1       1 bash
1858    1857       1       1       1 ps
1859    1857       1       1       1 cat2
1860    1857       1       1       1 bash

run_snippet bash bgpipe-lastpipe yes
[1] 1869
[1]+  Done                    ps -o $PS_COLS | _tmp/cat2 | while read -r line; do
    echo "$line";
done
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    1866 sh
7       1       1       1    1866 bash
20       7       1       1    1866 bash
1305      20       1       1    1866 python2
1306    1305       1       1    1866 time-helper
1307    1306       1       1    1866 bash
1771    1307       1       1    1866 bash
1863    1771       1       1    1866 python2
1864    1863       1       1    1866 time-helper
1865    1864       1       1    1866 bash
1866    1865    1866       1    1866 bash
1867    1866    1867       1    1866 ps
1868    1866    1867       1    1866 cat2
1869    1866    1867       1    1866 bash

run_snippet bash subshell -
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   1872    1771       1       1       1 python2
   1873    1872       1       1       1 time-helper
   1874    1873       1       1       1 bash
   1875    1874       1       1       1 bash
   1876    1875       1       1       1 bash
   1877    1876       1       1       1 ps
ALIVE

run_snippet bash subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1884 sh
      7       1       1       1    1884 bash
     20       7       1       1    1884 bash
   1305      20       1       1    1884 python2
   1306    1305       1       1    1884 time-helper
   1307    1306       1       1    1884 bash
   1771    1307       1       1    1884 bash
   1880    1771       1       1    1884 python2
   1881    1880       1       1    1884 time-helper
   1882    1881       1       1    1884 bash
   1883    1882    1883       1    1884 bash
   1884    1883    1884       1    1884 bash
   1885    1884    1884       1    1884 ps
ALIVE

run_snippet bash csub -
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   1888    1771       1       1       1 python2
   1889    1888       1       1       1 time-helper
   1890    1889       1       1       1 bash
   1891    1890       1       1       1 bash
   1892    1891       1       1       1 ps

run_snippet bash csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1898 sh
      7       1       1       1    1898 bash
     20       7       1       1    1898 bash
   1305      20       1       1    1898 python2
   1306    1305       1       1    1898 time-helper
   1307    1306       1       1    1898 bash
   1771    1307       1       1    1898 bash
   1895    1771       1       1    1898 python2
   1896    1895       1       1    1898 time-helper
   1897    1896       1       1    1898 bash
   1898    1897    1898       1    1898 bash
   1899    1898    1898       1    1898 ps

run_snippet bash psub -
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   1902    1771       1       1       1 python2
   1903    1902       1       1       1 time-helper
   1904    1903       1       1       1 bash
   1905    1904       1       1       1 bash
   1906    1905       1       1       1 bash
   1907    1905       1       1       1 cat
   1908    1906       1       1       1 ps

run_snippet bash psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1916 sh
      7       1       1       1    1916 bash
     20       7       1       1    1916 bash
   1305      20       1       1    1916 python2
   1306    1305       1       1    1916 time-helper
   1307    1306       1       1    1916 bash
   1771    1307       1       1    1916 bash
   1911    1771       1       1    1916 python2
   1912    1911       1       1    1916 time-helper
   1913    1912       1       1    1916 bash
   1914    1913    1914       1    1916 bash
   1915    1914    1914       1    1916 bash
   1916    1914    1916       1    1916 cat
   1917    1915    1914       1    1916 ps

run_snippet dash fgproc -
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   1920    1771       1       1       1 python2
   1921    1920       1       1       1 time-helper
   1922    1921       1       1       1 bash
   1923    1922       1       1       1 dash
   1924    1923       1       1       1 ps

run_snippet dash fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1931 sh
      7       1       1       1    1931 bash
     20       7       1       1    1931 bash
   1305      20       1       1    1931 python2
   1306    1305       1       1    1931 time-helper
   1307    1306       1       1    1931 bash
   1771    1307       1       1    1931 bash
   1927    1771       1       1    1931 python2
   1928    1927       1       1    1931 time-helper
   1929    1928       1       1    1931 bash
   1930    1929    1930       1    1931 dash
   1931    1930    1931       1    1931 ps

run_snippet dash bgproc -
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   1934    1771       1       1       1 python2
   1935    1934       1       1       1 time-helper
   1936    1935       1       1       1 bash
   1937    1936       1       1       1 dash
   1938    1937       1       1       1 ps

run_snippet dash bgproc yes
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1944 sh
      7       1       1       1    1944 bash
     20       7       1       1    1944 bash
   1305      20       1       1    1944 python2
   1306    1305       1       1    1944 time-helper
   1307    1306       1       1    1944 bash
   1771    1307       1       1    1944 bash
   1941    1771       1       1    1944 python2
   1942    1941       1       1    1944 time-helper
   1943    1942       1       1    1944 bash
   1944    1943    1944       1    1944 dash
   1945    1944    1945       1    1944 ps

run_snippet dash fgpipe -
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   1948    1771       1       1       1 python2
   1949    1948       1       1       1 time-helper
   1950    1949       1       1       1 bash
   1951    1950       1       1       1 dash
   1952    1951       1       1       1 ps
   1953    1951       1       1       1 cat
   1954    1951       1       1       1 cat2

run_snippet dash fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1961 sh
      7       1       1       1    1961 bash
     20       7       1       1    1961 bash
   1305      20       1       1    1961 python2
   1306    1305       1       1    1961 time-helper
   1307    1306       1       1    1961 bash
   1771    1307       1       1    1961 bash
   1957    1771       1       1    1961 python2
   1958    1957       1       1    1961 time-helper
   1959    1958       1       1    1961 bash
   1960    1959    1960       1    1961 dash
   1961    1960    1961       1    1961 ps
   1962    1960    1961       1    1961 cat
   1963    1960    1961       1    1961 cat2

run_snippet dash fgpipe-lastpipe -
[foreground pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
7       1       1       1       1 bash
20       7       1       1       1 bash
1305      20       1       1       1 python2
1306    1305       1       1       1 time-helper
1307    1306       1       1       1 bash
1771    1307       1       1       1 bash
1966    1771       1       1       1 python2
1967    1966       1       1       1 time-helper
1968    1967       1       1       1 bash
1969    1968       1       1       1 dash
1970    1969       1       1       1 ps
1971    1969       1       1       1 cat2
1972    1969       1       1       1 dash

run_snippet dash fgpipe-lastpipe yes
[foreground pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    1979 sh
7       1       1       1    1979 bash
20       7       1       1    1979 bash
1305      20       1       1    1979 python2
1306    1305       1       1    1979 time-helper
1307    1306       1       1    1979 bash
1771    1307       1       1    1979 bash
1975    1771       1       1    1979 python2
1976    1975       1       1    1979 time-helper
1977    1976       1       1    1979 bash
1978    1977    1978       1    1979 dash
1979    1978    1979       1    1979 ps
1980    1978    1979       1    1979 cat2
1981    1978    1979       1    1979 dash

run_snippet dash bgpipe -
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   1984    1771       1       1       1 python2
   1985    1984       1       1       1 time-helper
   1986    1985       1       1       1 bash
   1987    1986       1       1       1 dash
   1988    1987       1       1       1 ps
   1989    1987       1       1       1 cat
   1990    1987       1       1       1 cat2

run_snippet dash bgpipe yes
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1996 sh
      7       1       1       1    1996 bash
     20       7       1       1    1996 bash
   1305      20       1       1    1996 python2
   1306    1305       1       1    1996 time-helper
   1307    1306       1       1    1996 bash
   1771    1307       1       1    1996 bash
   1993    1771       1       1    1996 python2
   1994    1993       1       1    1996 time-helper
   1995    1994       1       1    1996 bash
   1996    1995    1996       1    1996 dash
   1997    1996    1997       1    1996 ps
   1998    1996    1997       1    1996 cat
   1999    1996    1997       1    1996 cat2

run_snippet dash bgpipe-lastpipe -
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
7       1       1       1       1 bash
20       7       1       1       1 bash
1305      20       1       1       1 python2
1306    1305       1       1       1 time-helper
1307    1306       1       1       1 bash
1771    1307       1       1       1 bash
2002    1771       1       1       1 python2
2003    2002       1       1       1 time-helper
2004    2003       1       1       1 bash
2005    2004       1       1       1 dash
2006    2005       1       1       1 ps
2007    2005       1       1       1 cat2
2008    2005       1       1       1 dash

run_snippet dash bgpipe-lastpipe yes
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    2014 sh
7       1       1       1    2014 bash
20       7       1       1    2014 bash
1305      20       1       1    2014 python2
1306    1305       1       1    2014 time-helper
1307    1306       1       1    2014 bash
1771    1307       1       1    2014 bash
2011    1771       1       1    2014 python2
2012    2011       1       1    2014 time-helper
2013    2012       1       1    2014 bash
2014    2013    2014       1    2014 dash
2015    2014    2015       1    2014 ps
2016    2014    2015       1    2014 cat2
2017    2014    2015       1    2014 dash

run_snippet dash subshell -
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2020    1771       1       1       1 python2
   2021    2020       1       1       1 time-helper
   2022    2021       1       1       1 bash
   2023    2022       1       1       1 dash
   2024    2023       1       1       1 dash
   2025    2024       1       1       1 ps
ALIVE

run_snippet dash subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2032 sh
      7       1       1       1    2032 bash
     20       7       1       1    2032 bash
   1305      20       1       1    2032 python2
   1306    1305       1       1    2032 time-helper
   1307    1306       1       1    2032 bash
   1771    1307       1       1    2032 bash
   2028    1771       1       1    2032 python2
   2029    2028       1       1    2032 time-helper
   2030    2029       1       1    2032 bash
   2031    2030    2031       1    2032 dash
   2032    2031    2032       1    2032 dash
   2033    2032    2032       1    2032 ps
ALIVE

run_snippet dash csub -
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2036    1771       1       1       1 python2
   2037    2036       1       1       1 time-helper
   2038    2037       1       1       1 bash
   2039    2038       1       1       1 dash
   2040    2039       1       1       1 ps

run_snippet dash csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2046 sh
      7       1       1       1    2046 bash
     20       7       1       1    2046 bash
   1305      20       1       1    2046 python2
   1306    1305       1       1    2046 time-helper
   1307    1306       1       1    2046 bash
   1771    1307       1       1    2046 bash
   2043    1771       1       1    2046 python2
   2044    2043       1       1    2046 time-helper
   2045    2044       1       1    2046 bash
   2046    2045    2046       1    2046 dash
   2047    2046    2046       1    2046 ps

run_snippet dash psub -
malformed ps output

run_snippet dash psub yes
malformed ps output

run_snippet mksh fgproc -
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2062    1771       1       1       1 python2
   2063    2062       1       1       1 time-helper
   2064    2063       1       1       1 bash
   2065    2064       1       1       1 mksh
   2066    2065       1       1       1 ps

run_snippet mksh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2073 sh
      7       1       1       1    2073 bash
     20       7       1       1    2073 bash
   1305      20       1       1    2073 python2
   1306    1305       1       1    2073 time-helper
   1307    1306       1       1    2073 bash
   1771    1307       1       1    2073 bash
   2069    1771       1       1    2073 python2
   2070    2069       1       1    2073 time-helper
   2071    2070       1       1    2073 bash
   2072    2071    2072       1    2073 mksh
   2073    2072    2073       1    2073 ps

run_snippet mksh bgproc -
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2076    1771       1       1       1 python2
   2077    2076       1       1       1 time-helper
   2078    2077       1       1       1 bash
   2079    2078       1       1       1 mksh
   2080    2079       1       1       1 ps

run_snippet mksh bgproc yes
[1] 2087
[1] + Done                 \ps -o $PS_COLS 
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2086 sh
      7       1       1       1    2086 bash
     20       7       1       1    2086 bash
   1305      20       1       1    2086 python2
   1306    1305       1       1    2086 time-helper
   1307    1306       1       1    2086 bash
   1771    1307       1       1    2086 bash
   2083    1771       1       1    2086 python2
   2084    2083       1       1    2086 time-helper
   2085    2084       1       1    2086 bash
   2086    2085    2086       1    2086 mksh
   2087    2086    2087       1    2086 ps

run_snippet mksh fgpipe -
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2090    1771       1       1       1 python2
   2091    2090       1       1       1 time-helper
   2092    2091       1       1       1 bash
   2093    2092       1       1       1 mksh
   2094    2093       1       1       1 ps
   2095    2093       1       1       1 mksh
   2096    2093       1       1       1 cat2

run_snippet mksh fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2103 sh
      7       1       1       1    2103 bash
     20       7       1       1    2103 bash
   1305      20       1       1    2103 python2
   1306    1305       1       1    2103 time-helper
   1307    1306       1       1    2103 bash
   1771    1307       1       1    2103 bash
   2099    1771       1       1    2103 python2
   2100    2099       1       1    2103 time-helper
   2101    2100       1       1    2103 bash
   2102    2101    2102       1    2103 mksh
   2103    2102    2103       1    2103 ps
   2104    2102    2103       1    2103 mksh
   2105    2102    2103       1    2103 cat2

run_snippet mksh fgpipe-lastpipe -
[foreground pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
7       1       1       1       1 bash
20       7       1       1       1 bash
1305      20       1       1       1 python2
1306    1305       1       1       1 time-helper
1307    1306       1       1       1 bash
1771    1307       1       1       1 bash
2108    1771       1       1       1 python2
2109    2108       1       1       1 time-helper
2110    2109       1       1       1 bash
2111    2110       1       1       1 mksh
2112    2111       1       1       1 ps
2113    2111       1       1       1 cat2
2114    2111       1       1       1 mksh

run_snippet mksh fgpipe-lastpipe yes
[foreground pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    2121 sh
7       1       1       1    2121 bash
20       7       1       1    2121 bash
1305      20       1       1    2121 python2
1306    1305       1       1    2121 time-helper
1307    1306       1       1    2121 bash
1771    1307       1       1    2121 bash
2117    1771       1       1    2121 python2
2118    2117       1       1    2121 time-helper
2119    2118       1       1    2121 bash
2120    2119    2120       1    2121 mksh
2121    2120    2121       1    2121 ps
2122    2120    2121       1    2121 cat2
2123    2120    2121       1    2121 mksh

run_snippet mksh bgpipe -
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2126    1771       1       1       1 python2
   2127    2126       1       1       1 time-helper
   2128    2127       1       1       1 bash
   2129    2128       1       1       1 mksh
   2130    2129       1       1       1 ps
   2131    2129       1       1       1 mksh
   2132    2129       1       1       1 cat2

run_snippet mksh bgpipe yes
[1] 2139 2140 2141
[1] + Done                 \ps -o $PS_COLS | \cat | _tmp/cat2 
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2138 sh
      7       1       1       1    2138 bash
     20       7       1       1    2138 bash
   1305      20       1       1    2138 python2
   1306    1305       1       1    2138 time-helper
   1307    1306       1       1    2138 bash
   1771    1307       1       1    2138 bash
   2135    1771       1       1    2138 python2
   2136    2135       1       1    2138 time-helper
   2137    2136       1       1    2138 bash
   2138    2137    2138       1    2138 mksh
   2139    2138    2139       1    2138 ps
   2140    2138    2139       1    2138 mksh
   2141    2138    2139       1    2138 cat2

run_snippet mksh bgpipe-lastpipe -
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
7       1       1       1       1 bash
20       7       1       1       1 bash
1305      20       1       1       1 python2
1306    1305       1       1       1 time-helper
1307    1306       1       1       1 bash
1771    1307       1       1       1 bash
2144    1771       1       1       1 python2
2145    2144       1       1       1 time-helper
2146    2145       1       1       1 bash
2147    2146       1       1       1 mksh
2148    2147       1       1       1 ps
2149    2147       1       1       1 cat2
2150    2147       1       1       1 mksh

run_snippet mksh bgpipe-lastpipe yes
[1] 2157 2158 2159
[1] + Done                 \ps -o $PS_COLS | _tmp/cat2 | while \read -r line ; do \echo "$line" ; done 
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    2156 sh
7       1       1       1    2156 bash
20       7       1       1    2156 bash
1305      20       1       1    2156 python2
1306    1305       1       1    2156 time-helper
1307    1306       1       1    2156 bash
1771    1307       1       1    2156 bash
2153    1771       1       1    2156 python2
2154    2153       1       1    2156 time-helper
2155    2154       1       1    2156 bash
2156    2155    2156       1    2156 mksh
2157    2156    2157       1    2156 ps
2158    2156    2157       1    2156 cat2
2159    2156    2157       1    2156 mksh

run_snippet mksh subshell -
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2162    1771       1       1       1 python2
   2163    2162       1       1       1 time-helper
   2164    2163       1       1       1 bash
   2165    2164       1       1       1 mksh
   2166    2165       1       1       1 mksh
   2167    2166       1       1       1 ps
ALIVE

run_snippet mksh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2174 sh
      7       1       1       1    2174 bash
     20       7       1       1    2174 bash
   1305      20       1       1    2174 python2
   1306    1305       1       1    2174 time-helper
   1307    1306       1       1    2174 bash
   1771    1307       1       1    2174 bash
   2170    1771       1       1    2174 python2
   2171    2170       1       1    2174 time-helper
   2172    2171       1       1    2174 bash
   2173    2172    2173       1    2174 mksh
   2174    2173    2174       1    2174 mksh
   2175    2174    2174       1    2174 ps
ALIVE

run_snippet mksh csub -
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2178    1771       1       1       1 python2
   2179    2178       1       1       1 time-helper
   2180    2179       1       1       1 bash
   2181    2180       1       1       1 mksh
   2182    2181       1       1       1 ps

run_snippet mksh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2188 sh
      7       1       1       1    2188 bash
     20       7       1       1    2188 bash
   1305      20       1       1    2188 python2
   1306    1305       1       1    2188 time-helper
   1307    1306       1       1    2188 bash
   1771    1307       1       1    2188 bash
   2185    1771       1       1    2188 python2
   2186    2185       1       1    2188 time-helper
   2187    2186       1       1    2188 bash
   2188    2187    2188       1    2188 mksh
   2189    2188    2188       1    2188 ps

run_snippet mksh psub -
malformed ps output

run_snippet mksh psub yes
malformed ps output

run_snippet zsh fgproc -
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2204    1771       1       1       1 python2
   2205    2204       1       1       1 time-helper
   2206    2205       1       1       1 bash
   2207    2206       1       1       1 zsh
   2208    2207       1       1       1 ps

run_snippet zsh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2216 sh
      7       1       1       1    2216 bash
     20       7       1       1    2216 bash
   1305      20       1       1    2216 python2
   1306    1305       1       1    2216 time-helper
   1307    1306       1       1    2216 bash
   1771    1307       1       1    2216 bash
   2211    1771       1       1    2216 python2
   2212    2211       1       1    2216 time-helper
   2213    2212       1       1    2216 bash
   2214    2213    2214       1    2216 zsh
   2216    2214    2216       1    2216 ps

run_snippet zsh bgproc -
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2219    1771       1       1       1 python2
   2220    2219       1       1       1 time-helper
   2221    2220       1       1       1 bash
   2222    2221       1       1       1 zsh
   2223    2222       1       1       1 ps

run_snippet zsh bgproc yes
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2229 sh
      7       1       1       1    2229 bash
     20       7       1       1    2229 bash
   1305      20       1       1    2229 python2
   1306    1305       1       1    2229 time-helper
   1307    1306       1       1    2229 bash
   1771    1307       1       1    2229 bash
   2226    1771       1       1    2229 python2
   2227    2226       1       1    2229 time-helper
   2228    2227       1       1    2229 bash
   2229    2228    2229       1    2229 zsh
   2231    2229    2231       1    2229 ps

run_snippet zsh fgpipe -
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2234    1771       1       1       1 python2
   2235    2234       1       1       1 time-helper
   2236    2235       1       1       1 bash
   2237    2236       1       1       1 zsh
   2238    2237       1       1       1 ps
   2239    2237       1       1       1 cat
   2240    2237       1       1       1 cat2

run_snippet zsh fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2248 sh
      7       1       1       1    2248 bash
     20       7       1       1    2248 bash
   1305      20       1       1    2248 python2
   1306    1305       1       1    2248 time-helper
   1307    1306       1       1    2248 bash
   1771    1307       1       1    2248 bash
   2243    1771       1       1    2248 python2
   2244    2243       1       1    2248 time-helper
   2245    2244       1       1    2248 bash
   2246    2245    2246       1    2248 zsh
   2248    2246    2248       1    2248 ps
   2249    2246    2248       1    2248 cat
   2250    2246    2248       1    2248 cat2

run_snippet zsh fgpipe-lastpipe -
[foreground pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
7       1       1       1       1 bash
20       7       1       1       1 bash
1305      20       1       1       1 python2
1306    1305       1       1       1 time-helper
1307    1306       1       1       1 bash
1771    1307       1       1       1 bash
2253    1771       1       1       1 python2
2254    2253       1       1       1 time-helper
2255    2254       1       1       1 bash
2256    2255       1       1       1 zsh
2257    2256       1       1       1 ps
2258    2256       1       1       1 cat2

run_snippet zsh fgpipe-lastpipe yes
[foreground pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    2266 sh
7       1       1       1    2266 bash
20       7       1       1    2266 bash
1305      20       1       1    2266 python2
1306    1305       1       1    2266 time-helper
1307    1306       1       1    2266 bash
1771    1307       1       1    2266 bash
2261    1771       1       1    2266 python2
2262    2261       1       1    2266 time-helper
2263    2262       1       1    2266 bash
2264    2263    2264       1    2266 zsh
2266    2264    2266       1    2266 ps
2267    2264    2266       1    2266 cat2

run_snippet zsh bgpipe -
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2270    1771       1       1       1 python2
   2271    2270       1       1       1 time-helper
   2272    2271       1       1       1 bash
   2273    2272       1       1       1 zsh
   2274    2273       1       1       1 ps
   2275    2273       1       1       1 cat
   2276    2273       1       1       1 cat2

run_snippet zsh bgpipe yes
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2282 sh
      7       1       1       1    2282 bash
     20       7       1       1    2282 bash
   1305      20       1       1    2282 python2
   1306    1305       1       1    2282 time-helper
   1307    1306       1       1    2282 bash
   1771    1307       1       1    2282 bash
   2279    1771       1       1    2282 python2
   2280    2279       1       1    2282 time-helper
   2281    2280       1       1    2282 bash
   2282    2281    2282       1    2282 zsh
   2284    2282    2284       1    2282 ps
   2285    2282    2284       1    2282 cat
   2286    2282    2284       1    2282 cat2

run_snippet zsh bgpipe-lastpipe -
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
7       1       1       1       1 bash
20       7       1       1       1 bash
1305      20       1       1       1 python2
1306    1305       1       1       1 time-helper
1307    1306       1       1       1 bash
1771    1307       1       1       1 bash
2289    1771       1       1       1 python2
2290    2289       1       1       1 time-helper
2291    2290       1       1       1 bash
2292    2291       1       1       1 zsh
2293    2292       1       1       1 ps
2294    2292       1       1       1 cat2
2295    2292       1       1       1 zsh

run_snippet zsh bgpipe-lastpipe yes
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    2301 sh
7       1       1       1    2301 bash
20       7       1       1    2301 bash
1305      20       1       1    2301 python2
1306    1305       1       1    2301 time-helper
1307    1306       1       1    2301 bash
1771    1307       1       1    2301 bash
2298    1771       1       1    2301 python2
2299    2298       1       1    2301 time-helper
2300    2299       1       1    2301 bash
2301    2300    2301       1    2301 zsh
2303    2301    2303       1    2301 ps
2304    2301    2303       1    2301 cat2
2305    2301    2303       1    2301 zsh

run_snippet zsh subshell -
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2308    1771       1       1       1 python2
   2309    2308       1       1       1 time-helper
   2310    2309       1       1       1 bash
   2311    2310       1       1       1 zsh
   2312    2311       1       1       1 zsh
   2313    2312       1       1       1 ps
ALIVE

run_snippet zsh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2321 sh
      7       1       1       1    2321 bash
     20       7       1       1    2321 bash
   1305      20       1       1    2321 python2
   1306    1305       1       1    2321 time-helper
   1307    1306       1       1    2321 bash
   1771    1307       1       1    2321 bash
   2316    1771       1       1    2321 python2
   2317    2316       1       1    2321 time-helper
   2318    2317       1       1    2321 bash
   2319    2318    2319       1    2321 zsh
   2321    2319    2321       1    2321 zsh
   2322    2321    2321       1    2321 ps
ALIVE

run_snippet zsh csub -
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2325    1771       1       1       1 python2
   2326    2325       1       1       1 time-helper
   2327    2326       1       1       1 bash
   2328    2327       1       1       1 zsh
   2329    2328       1       1       1 ps

run_snippet zsh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2335 sh
      7       1       1       1    2335 bash
     20       7       1       1    2335 bash
   1305      20       1       1    2335 python2
   1306    1305       1       1    2335 time-helper
   1307    1306       1       1    2335 bash
   1771    1307       1       1    2335 bash
   2332    1771       1       1    2335 python2
   2333    2332       1       1    2335 time-helper
   2334    2333       1       1    2335 bash
   2335    2334    2335       1    2335 zsh
   2337    2335    2335       1    2335 ps

run_snippet zsh psub -
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2340    1771       1       1       1 python2
   2341    2340       1       1       1 time-helper
   2342    2341       1       1       1 bash
   2343    2342       1       1       1 zsh
   2344    2343       1       1       1 ps
   2345    2343       1       1       1 cat

run_snippet zsh psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2354 sh
      7       1       1       1    2354 bash
     20       7       1       1    2354 bash
   1305      20       1       1    2354 python2
   1306    1305       1       1    2354 time-helper
   1307    1306       1       1    2354 bash
   1771    1307       1       1    2354 bash
   2348    1771       1       1    2354 python2
   2349    2348       1       1    2354 time-helper
   2350    2349       1       1    2354 bash
   2351    2350    2351       1    2354 zsh
   2353    2351    2353       1    2354 ps
   2354    2351    2354       1    2354 cat

run_snippet bin/osh fgproc -
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2357    1771       1       1       1 python2
   2358    2357       1       1       1 time-helper
   2359    2358       1       1       1 bash
   2360    2359       1       1       1 python2
   2363    2360       1       1       1 ps

run_snippet bin/osh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2372 sh
      7       1       1       1    2372 bash
     20       7       1       1    2372 bash
   1305      20       1       1    2372 python2
   1306    1305       1       1    2372 time-helper
   1307    1306       1       1    2372 bash
   1771    1307       1       1    2372 bash
   2366    1771       1       1    2372 python2
   2367    2366       1       1    2372 time-helper
   2368    2367       1       1    2372 bash
   2369    2368    2369       1    2372 python2
   2372    2369    2372       1    2372 ps

run_snippet bin/osh bgproc -
[1] Done PID 2381
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2375    1771       1       1       1 python2
   2376    2375       1       1       1 time-helper
   2377    2376       1       1       1 bash
   2378    2377       1       1       1 python2
   2381    2378       1       1       1 ps

run_snippet bin/osh bgproc yes
[1] Done PID 2390
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2387 sh
      7       1       1       1    2387 bash
     20       7       1       1    2387 bash
   1305      20       1       1    2387 python2
   1306    1305       1       1    2387 time-helper
   1307    1306       1       1    2387 bash
   1771    1307       1       1    2387 bash
   2384    1771       1       1    2387 python2
   2385    2384       1       1    2387 time-helper
   2386    2385       1       1    2387 bash
   2387    2386    2387       1    2387 python2
   2390    2387    2390       1    2387 ps

run_snippet bin/osh fgpipe -
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2393    1771       1       1       1 python2
   2394    2393       1       1       1 time-helper
   2395    2394       1       1       1 bash
   2396    2395       1       1       1 python2
   2399    2396       1       1       1 ps
   2400    2396       1       1       1 cat
   2401    2396       1       1       1 cat2

run_snippet bin/osh fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2410 sh
      7       1       1       1    2410 bash
     20       7       1       1    2410 bash
   1305      20       1       1    2410 python2
   1306    1305       1       1    2410 time-helper
   1307    1306       1       1    2410 bash
   1771    1307       1       1    2410 bash
   2404    1771       1       1    2410 python2
   2405    2404       1       1    2410 time-helper
   2406    2405       1       1    2410 bash
   2407    2406    2407       1    2410 python2
   2410    2407    2410       1    2410 ps
   2411    2407    2410       1    2410 cat
   2412    2407    2410       1    2410 cat2

run_snippet bin/osh fgpipe-lastpipe -
[foreground pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
7       1       1       1       1 bash
20       7       1       1       1 bash
1305      20       1       1       1 python2
1306    1305       1       1       1 time-helper
1307    1306       1       1       1 bash
1771    1307       1       1       1 bash
2415    1771       1       1       1 python2
2416    2415       1       1       1 time-helper
2417    2416       1       1       1 bash
2418    2417       1       1       1 python2
2421    2418       1       1       1 ps
2422    2418       1       1       1 cat2

run_snippet bin/osh fgpipe-lastpipe yes
[foreground pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    2431 sh
7       1       1       1    2431 bash
20       7       1       1    2431 bash
1305      20       1       1    2431 python2
1306    1305       1       1    2431 time-helper
1307    1306       1       1    2431 bash
1771    1307       1       1    2431 bash
2425    1771       1       1    2431 python2
2426    2425       1       1    2431 time-helper
2427    2426       1       1    2431 bash
2428    2427    2428       1    2431 python2
2431    2428    2431       1    2431 ps
2432    2428    2431       1    2431 cat2

run_snippet bin/osh bgpipe -
[1] Done PGID 2441
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2435    1771       1       1       1 python2
   2436    2435       1       1       1 time-helper
   2437    2436       1       1       1 bash
   2438    2437       1       1       1 python2
   2441    2438       1       1       1 ps
   2442    2438       1       1       1 cat
   2443    2438       1       1       1 cat2

run_snippet bin/osh bgpipe yes
[1] Done PGID 2452
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2449 sh
      7       1       1       1    2449 bash
     20       7       1       1    2449 bash
   1305      20       1       1    2449 python2
   1306    1305       1       1    2449 time-helper
   1307    1306       1       1    2449 bash
   1771    1307       1       1    2449 bash
   2446    1771       1       1    2449 python2
   2447    2446       1       1    2449 time-helper
   2448    2447       1       1    2449 bash
   2449    2448    2449       1    2449 python2
   2452    2449    2452       1    2449 ps
   2453    2449    2452       1    2449 cat
   2454    2449    2452       1    2449 cat2

run_snippet bin/osh bgpipe-lastpipe -
[1] Done PGID 2463
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
7       1       1       1       1 bash
20       7       1       1       1 bash
1305      20       1       1       1 python2
1306    1305       1       1       1 time-helper
1307    1306       1       1       1 bash
1771    1307       1       1       1 bash
2457    1771       1       1       1 python2
2458    2457       1       1       1 time-helper
2459    2458       1       1       1 bash
2460    2459       1       1       1 python2
2463    2460       1       1       1 ps
2464    2460       1       1       1 cat2
2465    2460       1       1       1 python2

run_snippet bin/osh bgpipe-lastpipe yes
[1] Done PGID 2474
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    2471 sh
7       1       1       1    2471 bash
20       7       1       1    2471 bash
1305      20       1       1    2471 python2
1306    1305       1       1    2471 time-helper
1307    1306       1       1    2471 bash
1771    1307       1       1    2471 bash
2468    1771       1       1    2471 python2
2469    2468       1       1    2471 time-helper
2470    2469       1       1    2471 bash
2471    2470    2471       1    2471 python2
2474    2471    2474       1    2471 ps
2475    2471    2474       1    2471 cat2
2476    2471    2474       1    2471 python2

run_snippet bin/osh subshell -
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2479    1771       1       1       1 python2
   2480    2479       1       1       1 time-helper
   2481    2480       1       1       1 bash
   2482    2481       1       1       1 python2
   2485    2482       1       1       1 python2
   2486    2485       1       1       1 ps
ALIVE

run_snippet bin/osh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2495 sh
      7       1       1       1    2495 bash
     20       7       1       1    2495 bash
   1305      20       1       1    2495 python2
   1306    1305       1       1    2495 time-helper
   1307    1306       1       1    2495 bash
   1771    1307       1       1    2495 bash
   2489    1771       1       1    2495 python2
   2490    2489       1       1    2495 time-helper
   2491    2490       1       1    2495 bash
   2492    2491    2492       1    2495 python2
   2495    2492    2495       1    2495 python2
   2496    2495    2495       1    2495 ps
ALIVE

run_snippet bin/osh csub -
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2499    1771       1       1       1 python2
   2500    2499       1       1       1 time-helper
   2501    2500       1       1       1 bash
   2502    2501       1       1       1 python2
   2505    2502       1       1       1 ps

run_snippet bin/osh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2511 sh
      7       1       1       1    2511 bash
     20       7       1       1    2511 bash
   1305      20       1       1    2511 python2
   1306    1305       1       1    2511 time-helper
   1307    1306       1       1    2511 bash
   1771    1307       1       1    2511 bash
   2508    1771       1       1    2511 python2
   2509    2508       1       1    2511 time-helper
   2510    2509       1       1    2511 bash
   2511    2510    2511       1    2511 python2
   2514    2511    2511       1    2511 ps

run_snippet bin/osh psub -
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2517    1771       1       1       1 python2
   2518    2517       1       1       1 time-helper
   2519    2518       1       1       1 bash
   2520    2519       1       1       1 python2
   2523    2520       1       1       1 ps
   2524    2520       1       1       1 cat

run_snippet bin/osh psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2534 sh
      7       1       1       1    2534 bash
     20       7       1       1    2534 bash
   1305      20       1       1    2534 python2
   1306    1305       1       1    2534 time-helper
   1307    1306       1       1    2534 bash
   1771    1307       1       1    2534 bash
   2527    1771       1       1    2534 python2
   2528    2527       1       1    2534 time-helper
   2529    2528       1       1    2534 bash
   2530    2529    2530       1    2534 python2
   2533    2530    2533       1    2534 ps
   2534    2530    2534       1    2534 cat

run_snippet _bin/cxx-dbg/osh fgproc -
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2537    1771       1       1       1 python2
   2538    2537       1       1       1 time-helper
   2539    2538       1       1       1 bash
   2540    2539       1       1       1 osh
   2541    2540       1       1       1 ps

run_snippet _bin/cxx-dbg/osh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2548 sh
      7       1       1       1    2548 bash
     20       7       1       1    2548 bash
   1305      20       1       1    2548 python2
   1306    1305       1       1    2548 time-helper
   1307    1306       1       1    2548 bash
   1771    1307       1       1    2548 bash
   2544    1771       1       1    2548 python2
   2545    2544       1       1    2548 time-helper
   2546    2545       1       1    2548 bash
   2547    2546    2547       1    2548 osh
   2548    2547    2548       1    2548 ps

run_snippet _bin/cxx-dbg/osh bgproc -
[1] Done PID 2555
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2551    1771       1       1       1 python2
   2552    2551       1       1       1 time-helper
   2553    2552       1       1       1 bash
   2554    2553       1       1       1 osh
   2555    2554       1       1       1 ps

run_snippet _bin/cxx-dbg/osh bgproc yes
[1] Done PID 2562
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2561 sh
      7       1       1       1    2561 bash
     20       7       1       1    2561 bash
   1305      20       1       1    2561 python2
   1306    1305       1       1    2561 time-helper
   1307    1306       1       1    2561 bash
   1771    1307       1       1    2561 bash
   2558    1771       1       1    2561 python2
   2559    2558       1       1    2561 time-helper
   2560    2559       1       1    2561 bash
   2561    2560    2561       1    2561 osh
   2562    2561    2562       1    2561 ps

run_snippet _bin/cxx-dbg/osh fgpipe -
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2565    1771       1       1       1 python2
   2566    2565       1       1       1 time-helper
   2567    2566       1       1       1 bash
   2568    2567       1       1       1 osh
   2569    2568       1       1       1 ps
   2570    2568       1       1       1 cat
   2571    2568       1       1       1 cat2

run_snippet _bin/cxx-dbg/osh fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2578 sh
      7       1       1       1    2578 bash
     20       7       1       1    2578 bash
   1305      20       1       1    2578 python2
   1306    1305       1       1    2578 time-helper
   1307    1306       1       1    2578 bash
   1771    1307       1       1    2578 bash
   2574    1771       1       1    2578 python2
   2575    2574       1       1    2578 time-helper
   2576    2575       1       1    2578 bash
   2577    2576    2577       1    2578 osh
   2578    2577    2578       1    2578 ps
   2579    2577    2578       1    2578 cat
   2580    2577    2578       1    2578 cat2

run_snippet _bin/cxx-dbg/osh fgpipe-lastpipe -
[foreground pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
7       1       1       1       1 bash
20       7       1       1       1 bash
1305      20       1       1       1 python2
1306    1305       1       1       1 time-helper
1307    1306       1       1       1 bash
1771    1307       1       1       1 bash
2583    1771       1       1       1 python2
2584    2583       1       1       1 time-helper
2585    2584       1       1       1 bash
2586    2585       1       1       1 osh
2587    2586       1       1       1 ps
2588    2586       1       1       1 cat2

run_snippet _bin/cxx-dbg/osh fgpipe-lastpipe yes
[foreground pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    2595 sh
7       1       1       1    2595 bash
20       7       1       1    2595 bash
1305      20       1       1    2595 python2
1306    1305       1       1    2595 time-helper
1307    1306       1       1    2595 bash
1771    1307       1       1    2595 bash
2591    1771       1       1    2595 python2
2592    2591       1       1    2595 time-helper
2593    2592       1       1    2595 bash
2594    2593    2594       1    2595 osh
2595    2594    2595       1    2595 ps
2596    2594    2595       1    2595 cat2

run_snippet _bin/cxx-dbg/osh bgpipe -
[1] Done PGID 2603
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2599    1771       1       1       1 python2
   2600    2599       1       1       1 time-helper
   2601    2600       1       1       1 bash
   2602    2601       1       1       1 osh
   2603    2602       1       1       1 ps
   2604    2602       1       1       1 cat
   2605    2602       1       1       1 cat2

run_snippet _bin/cxx-dbg/osh bgpipe yes
[1] Done PGID 2612
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2611 sh
      7       1       1       1    2611 bash
     20       7       1       1    2611 bash
   1305      20       1       1    2611 python2
   1306    1305       1       1    2611 time-helper
   1307    1306       1       1    2611 bash
   1771    1307       1       1    2611 bash
   2608    1771       1       1    2611 python2
   2609    2608       1       1    2611 time-helper
   2610    2609       1       1    2611 bash
   2611    2610    2611       1    2611 osh
   2612    2611    2612       1    2611 ps
   2613    2611    2612       1    2611 cat
   2614    2611    2612       1    2611 cat2

run_snippet _bin/cxx-dbg/osh bgpipe-lastpipe -
[1] Done PGID 2621
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
7       1       1       1       1 bash
20       7       1       1       1 bash
1305      20       1       1       1 python2
1306    1305       1       1       1 time-helper
1307    1306       1       1       1 bash
1771    1307       1       1       1 bash
2617    1771       1       1       1 python2
2618    2617       1       1       1 time-helper
2619    2618       1       1       1 bash
2620    2619       1       1       1 osh
2621    2620       1       1       1 ps
2622    2620       1       1       1 cat2
2623    2620       1       1       1 osh

run_snippet _bin/cxx-dbg/osh bgpipe-lastpipe yes
[1] Done PGID 2630
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    2629 sh
7       1       1       1    2629 bash
20       7       1       1    2629 bash
1305      20       1       1    2629 python2
1306    1305       1       1    2629 time-helper
1307    1306       1       1    2629 bash
1771    1307       1       1    2629 bash
2626    1771       1       1    2629 python2
2627    2626       1       1    2629 time-helper
2628    2627       1       1    2629 bash
2629    2628    2629       1    2629 osh
2630    2629    2630       1    2629 ps
2631    2629    2630       1    2629 cat2
2632    2629    2630       1    2629 osh

run_snippet _bin/cxx-dbg/osh subshell -
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2635    1771       1       1       1 python2
   2636    2635       1       1       1 time-helper
   2637    2636       1       1       1 bash
   2638    2637       1       1       1 osh
   2639    2638       1       1       1 osh
   2640    2639       1       1       1 ps
ALIVE

run_snippet _bin/cxx-dbg/osh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2647 sh
      7       1       1       1    2647 bash
     20       7       1       1    2647 bash
   1305      20       1       1    2647 python2
   1306    1305       1       1    2647 time-helper
   1307    1306       1       1    2647 bash
   1771    1307       1       1    2647 bash
   2643    1771       1       1    2647 python2
   2644    2643       1       1    2647 time-helper
   2645    2644       1       1    2647 bash
   2646    2645    2646       1    2647 osh
   2647    2646    2647       1    2647 osh
   2648    2647    2647       1    2647 ps
ALIVE

run_snippet _bin/cxx-dbg/osh csub -
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2651    1771       1       1       1 python2
   2652    2651       1       1       1 time-helper
   2653    2652       1       1       1 bash
   2654    2653       1       1       1 osh
   2655    2654       1       1       1 ps

run_snippet _bin/cxx-dbg/osh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2661 sh
      7       1       1       1    2661 bash
     20       7       1       1    2661 bash
   1305      20       1       1    2661 python2
   1306    1305       1       1    2661 time-helper
   1307    1306       1       1    2661 bash
   1771    1307       1       1    2661 bash
   2658    1771       1       1    2661 python2
   2659    2658       1       1    2661 time-helper
   2660    2659       1       1    2661 bash
   2661    2660    2661       1    2661 osh
   2662    2661    2661       1    2661 ps

run_snippet _bin/cxx-dbg/osh psub -
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1305      20       1       1       1 python2
   1306    1305       1       1       1 time-helper
   1307    1306       1       1       1 bash
   1771    1307       1       1       1 bash
   2665    1771       1       1       1 python2
   2666    2665       1       1       1 time-helper
   2667    2666       1       1       1 bash
   2668    2667       1       1       1 osh
   2669    2668       1       1       1 ps
   2670    2668       1       1       1 cat

run_snippet _bin/cxx-dbg/osh psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2678 sh
      7       1       1       1    2678 bash
     20       7       1       1    2678 bash
   1305      20       1       1    2678 python2
   1306    1305       1       1    2678 time-helper
   1307    1306       1       1    2678 bash
   1771    1307       1       1    2678 bash
   2673    1771       1       1    2678 python2
   2674    2673       1       1    2678 time-helper
   2675    2674       1       1    2678 bash
   2676    2675    2676       1    2678 osh
   2677    2676    2677       1    2678 ps
   2678    2676    2678       1    2678 cat

Wrote _tmp/process-table/index.html