'_tmp/cat2' -> '/bin/cat'
[1/66] make-pystub _bin/shwrap/optview_gen core/optview_gen.py frontend/option_def.py
[2/66] build-stamp-cpp _build/git-commit.txt _gen/cpp/build_stamp.h _gen/cpp/build_stamp.cc
[3/66] make-pystub _bin/shwrap/embedded_file_gen cpp/embedded_file_gen.py mycpp/mylib.py pylib/collections_.py
[4/66] 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
[5/66] 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/66] 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 frontend/syntax_abbrev.py mycpp/mops.py mycpp/mylib.py pylib/collections_.py
[7/66] make-pystub _bin/shwrap/option_gen frontend/option_gen.py asdl/ast.py frontend/builtin_def.py frontend/option_def.py
[8/66] asdl_main cpp --no-pretty-print-methods asdl/hnode.asdl _gen/asdl/hnode.asdl _gen/asdl/hnode.asdl_debug.py
[9/66] optview_gen > _gen/core/optview.h
[10/66] 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/shell-flags _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/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/ysh/args.ysh stdlib/ysh/def.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/66] asdl_main cpp  core/value.asdl _gen/core/value.asdl _gen/core/value.asdl_debug.py
[12/66] asdl_main cpp  core/runtime.asdl _gen/core/runtime.asdl _gen/core/runtime.asdl_debug.py
[13/66] make-pystub _bin/shwrap/signal_gen frontend/signal_gen.py frontend/signal_def.py
[14/66] asdl_main cpp  data_lang/nil8.asdl _gen/data_lang/nil8.asdl _gen/data_lang/nil8.asdl_debug.py
[15/66] asdl_main cpp  display/pretty.asdl _gen/display/pretty.asdl _gen/display/pretty.asdl_debug.py
[16/66] consts_gen cpp _gen/frontend/id_kind.asdl
[17/66] consts_gen cpp _gen/frontend/option.asdl
[18/66] consts_gen cpp-consts _gen/frontend/consts
[19/66] signal_gen cpp _gen/frontend/signal
[20/66] 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/bash_impl.py core/error.py core/num.py core/optview.py data_lang/j8.py data_lang/j8_lite.py data_lang/pyj8.py display/ansi.py display/pp_hnode.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 frontend/syntax_abbrev.py mycpp/mops.py mycpp/mylib.py osh/arith_parse.py osh/tdop.py osh/word_.py pylib/collections_.py
[21/66] make-pystub _bin/shwrap/mycpp_main mycpp/mycpp_main.py mycpp/const_pass.py mycpp/control_flow_pass.py mycpp/conversion_pass.py mycpp/cppgen_pass.py mycpp/crash.py mycpp/format_strings.py mycpp/pass_state.py mycpp/translate.py mycpp/util.py mycpp/visitor.py
[22/66] flag_gen cpp _gen/frontend/arg_types
[23/66] asdl_main cpp --no-pretty-print-methods frontend/types.asdl _gen/frontend/types.asdl _gen/frontend/types.asdl_debug.py
[24/66] 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 frontend/syntax_abbrev.py mycpp/iolib.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/66] arith-parse-gen > _gen/osh/arith_parse.cc
[26/66] asdl_main cpp --abbrev-module=frontend.syntax_abbrev frontend/syntax.asdl _gen/frontend/syntax.asdl _gen/frontend/syntax.asdl_debug.py
[27/66] grammar_gen cpp ysh/grammar.pgen2 _gen/ysh
[28/66] cxx dbg '' mycpp/bump_leak_heap.cc _build/obj/cxx-dbg/mycpp/bump_leak_heap.o
[29/66] cxx dbg '' _gen/frontend/id_kind.asdl.cc _build/obj/cxx-dbg/_gen/frontend/id_kind.asdl.o
[30/66] cxx dbg '' _gen/display/pretty.asdl.cc _build/obj/cxx-dbg/_gen/display/pretty.asdl.o
[31/66] cxx dbg '' cpp/data_lang.cc _build/obj/cxx-dbg/cpp/data_lang.o
[32/66] cxx dbg '' mycpp/gc_iolib.cc _build/obj/cxx-dbg/mycpp/gc_iolib.o
[33/66] cxx dbg '' mycpp/gc_builtins.cc _build/obj/cxx-dbg/mycpp/gc_builtins.o
[34/66] cxx dbg '' _gen/core/value.asdl.cc _build/obj/cxx-dbg/_gen/core/value.asdl.o
[35/66] cxx dbg '' mycpp/gc_mops.cc _build/obj/cxx-dbg/mycpp/gc_mops.o
[36/66] cxx dbg '' mycpp/hash.cc _build/obj/cxx-dbg/mycpp/hash.o
[37/66] cxx dbg '' _gen/core/runtime.asdl.cc _build/obj/cxx-dbg/_gen/core/runtime.asdl.o
[38/66] cxx dbg '' mycpp/gc_mylib.cc _build/obj/cxx-dbg/mycpp/gc_mylib.o
[39/66] cxx dbg '' _gen/cpp/build_stamp.cc _build/obj/cxx-dbg/_gen/cpp/build_stamp.o
[40/66] cxx dbg '' _gen/bin/text_files.cc _build/obj/cxx-dbg/_gen/bin/text_files.o
[41/66] cxx dbg '' cpp/fanos.cc _build/obj/cxx-dbg/cpp/fanos.o
[42/66] cxx dbg '' cpp/fanos_shared.c _build/obj/cxx-dbg/cpp/fanos_shared.o
[43/66] cxx dbg '' mycpp/mark_sweep_heap.cc _build/obj/cxx-dbg/mycpp/mark_sweep_heap.o
[44/66] cxx dbg '' _gen/frontend/syntax.asdl.cc _build/obj/cxx-dbg/_gen/frontend/syntax.asdl.o
[45/66] cxx dbg '' cpp/core.cc _build/obj/cxx-dbg/cpp/core.o
[46/66] cxx dbg '' cpp/libc.cc _build/obj/cxx-dbg/cpp/libc.o
[47/66] cxx dbg '' cpp/frontend_flag_spec.cc _build/obj/cxx-dbg/cpp/frontend_flag_spec.o
[48/66] cxx dbg '' cpp/frontend_pyreadline.cc _build/obj/cxx-dbg/cpp/frontend_pyreadline.o
[49/66] cxx dbg '' cpp/frontend_match.cc _build/obj/cxx-dbg/cpp/frontend_match.o
[50/66] cxx dbg '' cpp/osh_tdop.cc _build/obj/cxx-dbg/cpp/osh_tdop.o
[51/66] cxx dbg '' cpp/osh.cc _build/obj/cxx-dbg/cpp/osh.o
[52/66] cxx dbg '' cpp/pylib.cc _build/obj/cxx-dbg/cpp/pylib.o
[53/66] cxx dbg '' cpp/pgen2.cc _build/obj/cxx-dbg/cpp/pgen2.o
[54/66] cxx dbg '' _gen/frontend/arg_types.cc _build/obj/cxx-dbg/_gen/frontend/arg_types.o
[55/66] cxx dbg '' _gen/data_lang/nil8.asdl.cc _build/obj/cxx-dbg/_gen/data_lang/nil8.asdl.o
[56/66] cxx dbg '' cpp/stdlib.cc _build/obj/cxx-dbg/cpp/stdlib.o
[57/66] cxx dbg '' mycpp/gc_str.cc _build/obj/cxx-dbg/mycpp/gc_str.o
[58/66] cxx dbg '' _gen/frontend/consts.cc _build/obj/cxx-dbg/_gen/frontend/consts.o
[59/66] cxx dbg '' _gen/frontend/help_meta.cc _build/obj/cxx-dbg/_gen/frontend/help_meta.o
[60/66] cxx dbg '' _gen/frontend/signal.cc _build/obj/cxx-dbg/_gen/frontend/signal.o
[61/66] cxx dbg '' _gen/osh/arith_parse.cc _build/obj/cxx-dbg/_gen/osh/arith_parse.o
[62/66] cxx dbg '' _gen/ysh/grammar_tables.cc _build/obj/cxx-dbg/_gen/ysh/grammar_tables.o
[63/66] 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/func_reflect.py builtin/hay_ysh.py builtin/io_osh.py builtin/io_ysh.py builtin/json_ysh.py builtin/meta_oils.py builtin/method_dict.py builtin/method_io.py builtin/method_list.py builtin/method_other.py builtin/method_str.py builtin/method_type.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/bash_impl.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/sh_init.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_hnode.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/syntax_abbrev.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/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/func_reflect.py builtin/hay_ysh.py builtin/io_osh.py builtin/io_ysh.py builtin/json_ysh.py builtin/meta_oils.py builtin/method_dict.py builtin/method_io.py builtin/method_list.py builtin/method_other.py builtin/method_str.py builtin/method_type.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/bash_impl.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/sh_init.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_hnode.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/syntax_abbrev.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/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: CONVERT
	mycpp pass: CONTROL FLOW
	mycpp: dumping control flow graph to _tmp/mycpp-facts
	mycpp pass: CONST
	mycpp pass: DECL
	mycpp pass: IMPL
WARNING: builtin.assign_osh._PrintVariables() has 26 stack roots. Consider refactoring this function.
WARNING: builtin.hay_ysh.HayNode_.Run() has 18 stack roots. Consider refactoring this function.
WARNING: builtin.io_ysh.Pp.Run() has 22 stack roots. Consider refactoring this function.
WARNING: builtin.meta_oils.ShellFile._Use() has 19 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 19 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 17 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 124 stack roots. Consider refactoring this function.
	mycpp DONE
[64/66] cxx dbg '' _gen/bin/oils_for_unix.mycpp.cc _build/obj/cxx-dbg/_gen/bin/oils_for_unix.mycpp.o
build/ninja-rules-cpp.sh: line 341: time: command not found
[65/66] 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_iolib.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
[66/66] 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   1837    1836       1       1       1 python2
   1838    1837       1       1       1 time-helper
   1839    1838       1       1       1 bash
   1840    1839       1       1       1 bash
   1841    1840       1       1       1 ps

run_snippet bash fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1848 sh
      7       1       1       1    1848 bash
     20       7       1       1    1848 bash
   1359      20       1       1    1848 python2
   1360    1359       1       1    1848 time-helper
   1361    1360       1       1    1848 bash
   1836    1361       1       1    1848 bash
   1844    1836       1       1    1848 python2
   1845    1844       1       1    1848 time-helper
   1846    1845       1       1    1848 bash
   1847    1846    1847       1    1848 bash
   1848    1847    1848       1    1848 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   1851    1836       1       1       1 python2
   1852    1851       1       1       1 time-helper
   1853    1852       1       1       1 bash
   1854    1853       1       1       1 bash
   1855    1854       1       1       1 ps

run_snippet bash bgproc yes
[1] 1862
[1]+  Done                    ps -o $PS_COLS
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1861 sh
      7       1       1       1    1861 bash
     20       7       1       1    1861 bash
   1359      20       1       1    1861 python2
   1360    1359       1       1    1861 time-helper
   1361    1360       1       1    1861 bash
   1836    1361       1       1    1861 bash
   1858    1836       1       1    1861 python2
   1859    1858       1       1    1861 time-helper
   1860    1859       1       1    1861 bash
   1861    1860    1861       1    1861 bash
   1862    1861    1862       1    1861 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   1865    1836       1       1       1 python2
   1866    1865       1       1       1 time-helper
   1867    1866       1       1       1 bash
   1868    1867       1       1       1 bash
   1869    1868       1       1       1 ps
   1870    1868       1       1       1 cat
   1871    1868       1       1       1 cat2

run_snippet bash fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1878 sh
      7       1       1       1    1878 bash
     20       7       1       1    1878 bash
   1359      20       1       1    1878 python2
   1360    1359       1       1    1878 time-helper
   1361    1360       1       1    1878 bash
   1836    1361       1       1    1878 bash
   1874    1836       1       1    1878 python2
   1875    1874       1       1    1878 time-helper
   1876    1875       1       1    1878 bash
   1877    1876    1877       1    1878 bash
   1878    1877    1878       1    1878 ps
   1879    1877    1878       1    1878 cat
   1880    1877    1878       1    1878 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
1359      20       1       1       1 python2
1360    1359       1       1       1 time-helper
1361    1360       1       1       1 bash
1836    1361       1       1       1 bash
1883    1836       1       1       1 python2
1884    1883       1       1       1 time-helper
1885    1884       1       1       1 bash
1886    1885       1       1       1 bash
1887    1886       1       1       1 ps
1888    1886       1       1       1 cat2
1889    1886       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    1896 sh
7       1       1       1    1896 bash
20       7       1       1    1896 bash
1359      20       1       1    1896 python2
1360    1359       1       1    1896 time-helper
1361    1360       1       1    1896 bash
1836    1361       1       1    1896 bash
1892    1836       1       1    1896 python2
1893    1892       1       1    1896 time-helper
1894    1893       1       1    1896 bash
1895    1894    1895       1    1896 bash
1896    1895    1896       1    1896 ps
1897    1895    1896       1    1896 cat2
1898    1895    1896       1    1896 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   1901    1836       1       1       1 python2
   1902    1901       1       1       1 time-helper
   1903    1902       1       1       1 bash
   1904    1903       1       1       1 bash
   1905    1904       1       1       1 ps
   1906    1904       1       1       1 cat
   1907    1904       1       1       1 cat2

run_snippet bash bgpipe yes
[1] 1916
[1]+  Done                    ps -o $PS_COLS | cat | _tmp/cat2
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1913 sh
      7       1       1       1    1913 bash
     20       7       1       1    1913 bash
   1359      20       1       1    1913 python2
   1360    1359       1       1    1913 time-helper
   1361    1360       1       1    1913 bash
   1836    1361       1       1    1913 bash
   1910    1836       1       1    1913 python2
   1911    1910       1       1    1913 time-helper
   1912    1911       1       1    1913 bash
   1913    1912    1913       1    1913 bash
   1914    1913    1914       1    1913 ps
   1915    1913    1914       1    1913 cat
   1916    1913    1914       1    1913 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
1359      20       1       1       1 python2
1360    1359       1       1       1 time-helper
1361    1360       1       1       1 bash
1836    1361       1       1       1 bash
1919    1836       1       1       1 python2
1920    1919       1       1       1 time-helper
1921    1920       1       1       1 bash
1922    1921       1       1       1 bash
1923    1922       1       1       1 ps
1924    1922       1       1       1 cat2
1925    1922       1       1       1 bash

run_snippet bash bgpipe-lastpipe yes
[1] 1934
[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    1931 sh
7       1       1       1    1931 bash
20       7       1       1    1931 bash
1359      20       1       1    1931 python2
1360    1359       1       1    1931 time-helper
1361    1360       1       1    1931 bash
1836    1361       1       1    1931 bash
1928    1836       1       1    1931 python2
1929    1928       1       1    1931 time-helper
1930    1929       1       1    1931 bash
1931    1930    1931       1    1931 bash
1932    1931    1932       1    1931 ps
1933    1931    1932       1    1931 cat2
1934    1931    1932       1    1931 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   1937    1836       1       1       1 python2
   1938    1937       1       1       1 time-helper
   1939    1938       1       1       1 bash
   1940    1939       1       1       1 bash
   1941    1940       1       1       1 bash
   1942    1941       1       1       1 ps
ALIVE

run_snippet bash subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1949 sh
      7       1       1       1    1949 bash
     20       7       1       1    1949 bash
   1359      20       1       1    1949 python2
   1360    1359       1       1    1949 time-helper
   1361    1360       1       1    1949 bash
   1836    1361       1       1    1949 bash
   1945    1836       1       1    1949 python2
   1946    1945       1       1    1949 time-helper
   1947    1946       1       1    1949 bash
   1948    1947    1948       1    1949 bash
   1949    1948    1949       1    1949 bash
   1950    1949    1949       1    1949 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   1953    1836       1       1       1 python2
   1954    1953       1       1       1 time-helper
   1955    1954       1       1       1 bash
   1956    1955       1       1       1 bash
   1957    1956       1       1       1 ps

run_snippet bash csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1963 sh
      7       1       1       1    1963 bash
     20       7       1       1    1963 bash
   1359      20       1       1    1963 python2
   1360    1359       1       1    1963 time-helper
   1361    1360       1       1    1963 bash
   1836    1361       1       1    1963 bash
   1960    1836       1       1    1963 python2
   1961    1960       1       1    1963 time-helper
   1962    1961       1       1    1963 bash
   1963    1962    1963       1    1963 bash
   1964    1963    1963       1    1963 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   1967    1836       1       1       1 python2
   1968    1967       1       1       1 time-helper
   1969    1968       1       1       1 bash
   1970    1969       1       1       1 bash
   1971    1970       1       1       1 bash
   1972    1970       1       1       1 cat
   1973    1971       1       1       1 ps

run_snippet bash psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1981 sh
      7       1       1       1    1981 bash
     20       7       1       1    1981 bash
   1359      20       1       1    1981 python2
   1360    1359       1       1    1981 time-helper
   1361    1360       1       1    1981 bash
   1836    1361       1       1    1981 bash
   1976    1836       1       1    1981 python2
   1977    1976       1       1    1981 time-helper
   1978    1977       1       1    1981 bash
   1979    1978    1979       1    1981 bash
   1980    1979    1979       1    1981 bash
   1981    1979    1981       1    1981 cat
   1982    1980    1979       1    1981 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   1985    1836       1       1       1 python2
   1986    1985       1       1       1 time-helper
   1987    1986       1       1       1 bash
   1988    1987       1       1       1 dash
   1989    1988       1       1       1 ps

run_snippet dash fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1996 sh
      7       1       1       1    1996 bash
     20       7       1       1    1996 bash
   1359      20       1       1    1996 python2
   1360    1359       1       1    1996 time-helper
   1361    1360       1       1    1996 bash
   1836    1361       1       1    1996 bash
   1992    1836       1       1    1996 python2
   1993    1992       1       1    1996 time-helper
   1994    1993       1       1    1996 bash
   1995    1994    1995       1    1996 dash
   1996    1995    1996       1    1996 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   1999    1836       1       1       1 python2
   2000    1999       1       1       1 time-helper
   2001    2000       1       1       1 bash
   2002    2001       1       1       1 dash
   2003    2002       1       1       1 ps

run_snippet dash bgproc yes
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2009 sh
      7       1       1       1    2009 bash
     20       7       1       1    2009 bash
   1359      20       1       1    2009 python2
   1360    1359       1       1    2009 time-helper
   1361    1360       1       1    2009 bash
   1836    1361       1       1    2009 bash
   2006    1836       1       1    2009 python2
   2007    2006       1       1    2009 time-helper
   2008    2007       1       1    2009 bash
   2009    2008    2009       1    2009 dash
   2010    2009    2010       1    2009 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2013    1836       1       1       1 python2
   2014    2013       1       1       1 time-helper
   2015    2014       1       1       1 bash
   2016    2015       1       1       1 dash
   2017    2016       1       1       1 ps
   2018    2016       1       1       1 cat
   2019    2016       1       1       1 cat2

run_snippet dash fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2026 sh
      7       1       1       1    2026 bash
     20       7       1       1    2026 bash
   1359      20       1       1    2026 python2
   1360    1359       1       1    2026 time-helper
   1361    1360       1       1    2026 bash
   1836    1361       1       1    2026 bash
   2022    1836       1       1    2026 python2
   2023    2022       1       1    2026 time-helper
   2024    2023       1       1    2026 bash
   2025    2024    2025       1    2026 dash
   2026    2025    2026       1    2026 ps
   2027    2025    2026       1    2026 cat
   2028    2025    2026       1    2026 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
1359      20       1       1       1 python2
1360    1359       1       1       1 time-helper
1361    1360       1       1       1 bash
1836    1361       1       1       1 bash
2031    1836       1       1       1 python2
2032    2031       1       1       1 time-helper
2033    2032       1       1       1 bash
2034    2033       1       1       1 dash
2035    2034       1       1       1 ps
2036    2034       1       1       1 cat2
2037    2034       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    2044 sh
7       1       1       1    2044 bash
20       7       1       1    2044 bash
1359      20       1       1    2044 python2
1360    1359       1       1    2044 time-helper
1361    1360       1       1    2044 bash
1836    1361       1       1    2044 bash
2040    1836       1       1    2044 python2
2041    2040       1       1    2044 time-helper
2042    2041       1       1    2044 bash
2043    2042    2043       1    2044 dash
2044    2043    2044       1    2044 ps
2045    2043    2044       1    2044 cat2
2046    2043    2044       1    2044 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2049    1836       1       1       1 python2
   2050    2049       1       1       1 time-helper
   2051    2050       1       1       1 bash
   2052    2051       1       1       1 dash
   2053    2052       1       1       1 ps
   2054    2052       1       1       1 cat
   2055    2052       1       1       1 cat2

run_snippet dash bgpipe yes
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2061 sh
      7       1       1       1    2061 bash
     20       7       1       1    2061 bash
   1359      20       1       1    2061 python2
   1360    1359       1       1    2061 time-helper
   1361    1360       1       1    2061 bash
   1836    1361       1       1    2061 bash
   2058    1836       1       1    2061 python2
   2059    2058       1       1    2061 time-helper
   2060    2059       1       1    2061 bash
   2061    2060    2061       1    2061 dash
   2062    2061    2062       1    2061 ps
   2063    2061    2062       1    2061 cat
   2064    2061    2062       1    2061 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
1359      20       1       1       1 python2
1360    1359       1       1       1 time-helper
1361    1360       1       1       1 bash
1836    1361       1       1       1 bash
2067    1836       1       1       1 python2
2068    2067       1       1       1 time-helper
2069    2068       1       1       1 bash
2070    2069       1       1       1 dash
2071    2070       1       1       1 ps
2072    2070       1       1       1 cat2
2073    2070       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    2079 sh
7       1       1       1    2079 bash
20       7       1       1    2079 bash
1359      20       1       1    2079 python2
1360    1359       1       1    2079 time-helper
1361    1360       1       1    2079 bash
1836    1361       1       1    2079 bash
2076    1836       1       1    2079 python2
2077    2076       1       1    2079 time-helper
2078    2077       1       1    2079 bash
2079    2078    2079       1    2079 dash
2080    2079    2080       1    2079 ps
2081    2079    2080       1    2079 cat2
2082    2079    2080       1    2079 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2085    1836       1       1       1 python2
   2086    2085       1       1       1 time-helper
   2087    2086       1       1       1 bash
   2088    2087       1       1       1 dash
   2089    2088       1       1       1 dash
   2090    2089       1       1       1 ps
ALIVE

run_snippet dash subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2097 sh
      7       1       1       1    2097 bash
     20       7       1       1    2097 bash
   1359      20       1       1    2097 python2
   1360    1359       1       1    2097 time-helper
   1361    1360       1       1    2097 bash
   1836    1361       1       1    2097 bash
   2093    1836       1       1    2097 python2
   2094    2093       1       1    2097 time-helper
   2095    2094       1       1    2097 bash
   2096    2095    2096       1    2097 dash
   2097    2096    2097       1    2097 dash
   2098    2097    2097       1    2097 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2101    1836       1       1       1 python2
   2102    2101       1       1       1 time-helper
   2103    2102       1       1       1 bash
   2104    2103       1       1       1 dash
   2105    2104       1       1       1 ps

run_snippet dash csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2111 sh
      7       1       1       1    2111 bash
     20       7       1       1    2111 bash
   1359      20       1       1    2111 python2
   1360    1359       1       1    2111 time-helper
   1361    1360       1       1    2111 bash
   1836    1361       1       1    2111 bash
   2108    1836       1       1    2111 python2
   2109    2108       1       1    2111 time-helper
   2110    2109       1       1    2111 bash
   2111    2110    2111       1    2111 dash
   2112    2111    2111       1    2111 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2127    1836       1       1       1 python2
   2128    2127       1       1       1 time-helper
   2129    2128       1       1       1 bash
   2130    2129       1       1       1 mksh
   2131    2130       1       1       1 ps

run_snippet mksh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2138 sh
      7       1       1       1    2138 bash
     20       7       1       1    2138 bash
   1359      20       1       1    2138 python2
   1360    1359       1       1    2138 time-helper
   1361    1360       1       1    2138 bash
   1836    1361       1       1    2138 bash
   2134    1836       1       1    2138 python2
   2135    2134       1       1    2138 time-helper
   2136    2135       1       1    2138 bash
   2137    2136    2137       1    2138 mksh
   2138    2137    2138       1    2138 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2141    1836       1       1       1 python2
   2142    2141       1       1       1 time-helper
   2143    2142       1       1       1 bash
   2144    2143       1       1       1 mksh
   2145    2144       1       1       1 ps

run_snippet mksh bgproc yes
[1] 2152
[1] + Done                 \ps -o $PS_COLS 
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2151 sh
      7       1       1       1    2151 bash
     20       7       1       1    2151 bash
   1359      20       1       1    2151 python2
   1360    1359       1       1    2151 time-helper
   1361    1360       1       1    2151 bash
   1836    1361       1       1    2151 bash
   2148    1836       1       1    2151 python2
   2149    2148       1       1    2151 time-helper
   2150    2149       1       1    2151 bash
   2151    2150    2151       1    2151 mksh
   2152    2151    2152       1    2151 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2155    1836       1       1       1 python2
   2156    2155       1       1       1 time-helper
   2157    2156       1       1       1 bash
   2158    2157       1       1       1 mksh
   2159    2158       1       1       1 ps
   2160    2158       1       1       1 mksh
   2161    2158       1       1       1 cat2

run_snippet mksh fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2168 sh
      7       1       1       1    2168 bash
     20       7       1       1    2168 bash
   1359      20       1       1    2168 python2
   1360    1359       1       1    2168 time-helper
   1361    1360       1       1    2168 bash
   1836    1361       1       1    2168 bash
   2164    1836       1       1    2168 python2
   2165    2164       1       1    2168 time-helper
   2166    2165       1       1    2168 bash
   2167    2166    2167       1    2168 mksh
   2168    2167    2168       1    2168 ps
   2169    2167    2168       1    2168 mksh
   2170    2167    2168       1    2168 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
1359      20       1       1       1 python2
1360    1359       1       1       1 time-helper
1361    1360       1       1       1 bash
1836    1361       1       1       1 bash
2173    1836       1       1       1 python2
2174    2173       1       1       1 time-helper
2175    2174       1       1       1 bash
2176    2175       1       1       1 mksh
2177    2176       1       1       1 ps
2178    2176       1       1       1 cat2
2179    2176       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    2186 sh
7       1       1       1    2186 bash
20       7       1       1    2186 bash
1359      20       1       1    2186 python2
1360    1359       1       1    2186 time-helper
1361    1360       1       1    2186 bash
1836    1361       1       1    2186 bash
2182    1836       1       1    2186 python2
2183    2182       1       1    2186 time-helper
2184    2183       1       1    2186 bash
2185    2184    2185       1    2186 mksh
2186    2185    2186       1    2186 ps
2187    2185    2186       1    2186 cat2
2188    2185    2186       1    2186 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2191    1836       1       1       1 python2
   2192    2191       1       1       1 time-helper
   2193    2192       1       1       1 bash
   2194    2193       1       1       1 mksh
   2195    2194       1       1       1 ps
   2196    2194       1       1       1 mksh
   2197    2194       1       1       1 cat2

run_snippet mksh bgpipe yes
[1] 2204 2205 2206
[1] + Done                 \ps -o $PS_COLS | \cat | _tmp/cat2 
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2203 sh
      7       1       1       1    2203 bash
     20       7       1       1    2203 bash
   1359      20       1       1    2203 python2
   1360    1359       1       1    2203 time-helper
   1361    1360       1       1    2203 bash
   1836    1361       1       1    2203 bash
   2200    1836       1       1    2203 python2
   2201    2200       1       1    2203 time-helper
   2202    2201       1       1    2203 bash
   2203    2202    2203       1    2203 mksh
   2204    2203    2204       1    2203 ps
   2205    2203    2204       1    2203 mksh
   2206    2203    2204       1    2203 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
1359      20       1       1       1 python2
1360    1359       1       1       1 time-helper
1361    1360       1       1       1 bash
1836    1361       1       1       1 bash
2209    1836       1       1       1 python2
2210    2209       1       1       1 time-helper
2211    2210       1       1       1 bash
2212    2211       1       1       1 mksh
2213    2212       1       1       1 ps
2214    2212       1       1       1 cat2
2215    2212       1       1       1 mksh

run_snippet mksh bgpipe-lastpipe yes
[1] 2222 2223 2224
[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    2221 sh
7       1       1       1    2221 bash
20       7       1       1    2221 bash
1359      20       1       1    2221 python2
1360    1359       1       1    2221 time-helper
1361    1360       1       1    2221 bash
1836    1361       1       1    2221 bash
2218    1836       1       1    2221 python2
2219    2218       1       1    2221 time-helper
2220    2219       1       1    2221 bash
2221    2220    2221       1    2221 mksh
2222    2221    2222       1    2221 ps
2223    2221    2222       1    2221 cat2
2224    2221    2222       1    2221 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2227    1836       1       1       1 python2
   2228    2227       1       1       1 time-helper
   2229    2228       1       1       1 bash
   2230    2229       1       1       1 mksh
   2231    2230       1       1       1 mksh
   2232    2231       1       1       1 ps
ALIVE

run_snippet mksh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2239 sh
      7       1       1       1    2239 bash
     20       7       1       1    2239 bash
   1359      20       1       1    2239 python2
   1360    1359       1       1    2239 time-helper
   1361    1360       1       1    2239 bash
   1836    1361       1       1    2239 bash
   2235    1836       1       1    2239 python2
   2236    2235       1       1    2239 time-helper
   2237    2236       1       1    2239 bash
   2238    2237    2238       1    2239 mksh
   2239    2238    2239       1    2239 mksh
   2240    2239    2239       1    2239 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2243    1836       1       1       1 python2
   2244    2243       1       1       1 time-helper
   2245    2244       1       1       1 bash
   2246    2245       1       1       1 mksh
   2247    2246       1       1       1 ps

run_snippet mksh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2253 sh
      7       1       1       1    2253 bash
     20       7       1       1    2253 bash
   1359      20       1       1    2253 python2
   1360    1359       1       1    2253 time-helper
   1361    1360       1       1    2253 bash
   1836    1361       1       1    2253 bash
   2250    1836       1       1    2253 python2
   2251    2250       1       1    2253 time-helper
   2252    2251       1       1    2253 bash
   2253    2252    2253       1    2253 mksh
   2254    2253    2253       1    2253 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2269    1836       1       1       1 python2
   2270    2269       1       1       1 time-helper
   2271    2270       1       1       1 bash
   2272    2271       1       1       1 zsh
   2273    2272       1       1       1 ps

run_snippet zsh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2281 sh
      7       1       1       1    2281 bash
     20       7       1       1    2281 bash
   1359      20       1       1    2281 python2
   1360    1359       1       1    2281 time-helper
   1361    1360       1       1    2281 bash
   1836    1361       1       1    2281 bash
   2276    1836       1       1    2281 python2
   2277    2276       1       1    2281 time-helper
   2278    2277       1       1    2281 bash
   2279    2278    2279       1    2281 zsh
   2281    2279    2281       1    2281 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2284    1836       1       1       1 python2
   2285    2284       1       1       1 time-helper
   2286    2285       1       1       1 bash
   2287    2286       1       1       1 zsh
   2288    2287       1       1       1 ps

run_snippet zsh bgproc yes
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2294 sh
      7       1       1       1    2294 bash
     20       7       1       1    2294 bash
   1359      20       1       1    2294 python2
   1360    1359       1       1    2294 time-helper
   1361    1360       1       1    2294 bash
   1836    1361       1       1    2294 bash
   2291    1836       1       1    2294 python2
   2292    2291       1       1    2294 time-helper
   2293    2292       1       1    2294 bash
   2294    2293    2294       1    2294 zsh
   2296    2294    2296       1    2294 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2299    1836       1       1       1 python2
   2300    2299       1       1       1 time-helper
   2301    2300       1       1       1 bash
   2302    2301       1       1       1 zsh
   2303    2302       1       1       1 ps
   2304    2302       1       1       1 cat
   2305    2302       1       1       1 cat2

run_snippet zsh fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2313 sh
      7       1       1       1    2313 bash
     20       7       1       1    2313 bash
   1359      20       1       1    2313 python2
   1360    1359       1       1    2313 time-helper
   1361    1360       1       1    2313 bash
   1836    1361       1       1    2313 bash
   2308    1836       1       1    2313 python2
   2309    2308       1       1    2313 time-helper
   2310    2309       1       1    2313 bash
   2311    2310    2311       1    2313 zsh
   2313    2311    2313       1    2313 ps
   2314    2311    2313       1    2313 cat
   2315    2311    2313       1    2313 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
1359      20       1       1       1 python2
1360    1359       1       1       1 time-helper
1361    1360       1       1       1 bash
1836    1361       1       1       1 bash
2318    1836       1       1       1 python2
2319    2318       1       1       1 time-helper
2320    2319       1       1       1 bash
2321    2320       1       1       1 zsh
2322    2321       1       1       1 ps
2323    2321       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    2331 sh
7       1       1       1    2331 bash
20       7       1       1    2331 bash
1359      20       1       1    2331 python2
1360    1359       1       1    2331 time-helper
1361    1360       1       1    2331 bash
1836    1361       1       1    2331 bash
2326    1836       1       1    2331 python2
2327    2326       1       1    2331 time-helper
2328    2327       1       1    2331 bash
2329    2328    2329       1    2331 zsh
2331    2329    2331       1    2331 ps
2332    2329    2331       1    2331 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2335    1836       1       1       1 python2
   2336    2335       1       1       1 time-helper
   2337    2336       1       1       1 bash
   2338    2337       1       1       1 zsh
   2339    2338       1       1       1 ps
   2340    2338       1       1       1 cat
   2341    2338       1       1       1 cat2

run_snippet zsh bgpipe yes
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2347 sh
      7       1       1       1    2347 bash
     20       7       1       1    2347 bash
   1359      20       1       1    2347 python2
   1360    1359       1       1    2347 time-helper
   1361    1360       1       1    2347 bash
   1836    1361       1       1    2347 bash
   2344    1836       1       1    2347 python2
   2345    2344       1       1    2347 time-helper
   2346    2345       1       1    2347 bash
   2347    2346    2347       1    2347 zsh
   2349    2347    2349       1    2347 ps
   2350    2347    2349       1    2347 cat
   2351    2347    2349       1    2347 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
1359      20       1       1       1 python2
1360    1359       1       1       1 time-helper
1361    1360       1       1       1 bash
1836    1361       1       1       1 bash
2354    1836       1       1       1 python2
2355    2354       1       1       1 time-helper
2356    2355       1       1       1 bash
2357    2356       1       1       1 zsh
2358    2357       1       1       1 ps
2359    2357       1       1       1 cat2
2360    2357       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    2366 sh
7       1       1       1    2366 bash
20       7       1       1    2366 bash
1359      20       1       1    2366 python2
1360    1359       1       1    2366 time-helper
1361    1360       1       1    2366 bash
1836    1361       1       1    2366 bash
2363    1836       1       1    2366 python2
2364    2363       1       1    2366 time-helper
2365    2364       1       1    2366 bash
2366    2365    2366       1    2366 zsh
2368    2366    2368       1    2366 ps
2369    2366    2368       1    2366 cat2
2370    2366    2368       1    2366 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2373    1836       1       1       1 python2
   2374    2373       1       1       1 time-helper
   2375    2374       1       1       1 bash
   2376    2375       1       1       1 zsh
   2377    2376       1       1       1 zsh
   2378    2377       1       1       1 ps
ALIVE

run_snippet zsh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2386 sh
      7       1       1       1    2386 bash
     20       7       1       1    2386 bash
   1359      20       1       1    2386 python2
   1360    1359       1       1    2386 time-helper
   1361    1360       1       1    2386 bash
   1836    1361       1       1    2386 bash
   2381    1836       1       1    2386 python2
   2382    2381       1       1    2386 time-helper
   2383    2382       1       1    2386 bash
   2384    2383    2384       1    2386 zsh
   2386    2384    2386       1    2386 zsh
   2387    2386    2386       1    2386 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2390    1836       1       1       1 python2
   2391    2390       1       1       1 time-helper
   2392    2391       1       1       1 bash
   2393    2392       1       1       1 zsh
   2394    2393       1       1       1 ps

run_snippet zsh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2400 sh
      7       1       1       1    2400 bash
     20       7       1       1    2400 bash
   1359      20       1       1    2400 python2
   1360    1359       1       1    2400 time-helper
   1361    1360       1       1    2400 bash
   1836    1361       1       1    2400 bash
   2397    1836       1       1    2400 python2
   2398    2397       1       1    2400 time-helper
   2399    2398       1       1    2400 bash
   2400    2399    2400       1    2400 zsh
   2402    2400    2400       1    2400 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2405    1836       1       1       1 python2
   2406    2405       1       1       1 time-helper
   2407    2406       1       1       1 bash
   2408    2407       1       1       1 zsh
   2409    2408       1       1       1 ps
   2410    2408       1       1       1 cat

run_snippet zsh psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2419 sh
      7       1       1       1    2419 bash
     20       7       1       1    2419 bash
   1359      20       1       1    2419 python2
   1360    1359       1       1    2419 time-helper
   1361    1360       1       1    2419 bash
   1836    1361       1       1    2419 bash
   2413    1836       1       1    2419 python2
   2414    2413       1       1    2419 time-helper
   2415    2414       1       1    2419 bash
   2416    2415    2416       1    2419 zsh
   2418    2416    2418       1    2419 ps
   2419    2416    2419       1    2419 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2422    1836       1       1       1 python2
   2423    2422       1       1       1 time-helper
   2424    2423       1       1       1 bash
   2425    2424       1       1       1 python2
   2428    2425       1       1       1 ps

run_snippet bin/osh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2437 sh
      7       1       1       1    2437 bash
     20       7       1       1    2437 bash
   1359      20       1       1    2437 python2
   1360    1359       1       1    2437 time-helper
   1361    1360       1       1    2437 bash
   1836    1361       1       1    2437 bash
   2431    1836       1       1    2437 python2
   2432    2431       1       1    2437 time-helper
   2433    2432       1       1    2437 bash
   2434    2433    2434       1    2437 python2
   2437    2434    2437       1    2437 ps

run_snippet bin/osh bgproc -
[%1] PID 2446 Done
[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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2440    1836       1       1       1 python2
   2441    2440       1       1       1 time-helper
   2442    2441       1       1       1 bash
   2443    2442       1       1       1 python2
   2446    2443       1       1       1 ps

run_snippet bin/osh bgproc yes
[%1] PID 2455 Started
[%1] PID 2455 Done
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2452 sh
      7       1       1       1    2452 bash
     20       7       1       1    2452 bash
   1359      20       1       1    2452 python2
   1360    1359       1       1    2452 time-helper
   1361    1360       1       1    2452 bash
   1836    1361       1       1    2452 bash
   2449    1836       1       1    2452 python2
   2450    2449       1       1    2452 time-helper
   2451    2450       1       1    2452 bash
   2452    2451    2452       1    2452 python2
   2455    2452    2455       1    2452 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2458    1836       1       1       1 python2
   2459    2458       1       1       1 time-helper
   2460    2459       1       1       1 bash
   2461    2460       1       1       1 python2
   2464    2461       1       1       1 ps
   2465    2461       1       1       1 cat
   2466    2461       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    2475 sh
      7       1       1       1    2475 bash
     20       7       1       1    2475 bash
   1359      20       1       1    2475 python2
   1360    1359       1       1    2475 time-helper
   1361    1360       1       1    2475 bash
   1836    1361       1       1    2475 bash
   2469    1836       1       1    2475 python2
   2470    2469       1       1    2475 time-helper
   2471    2470       1       1    2475 bash
   2472    2471    2472       1    2475 python2
   2475    2472    2475       1    2475 ps
   2476    2472    2475       1    2475 cat
   2477    2472    2475       1    2475 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
1359      20       1       1       1 python2
1360    1359       1       1       1 time-helper
1361    1360       1       1       1 bash
1836    1361       1       1       1 bash
2480    1836       1       1       1 python2
2481    2480       1       1       1 time-helper
2482    2481       1       1       1 bash
2483    2482       1       1       1 python2
2486    2483       1       1       1 ps
2487    2483       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    2496 sh
7       1       1       1    2496 bash
20       7       1       1    2496 bash
1359      20       1       1    2496 python2
1360    1359       1       1    2496 time-helper
1361    1360       1       1    2496 bash
1836    1361       1       1    2496 bash
2490    1836       1       1    2496 python2
2491    2490       1       1    2496 time-helper
2492    2491       1       1    2496 bash
2493    2492    2493       1    2496 python2
2496    2493    2496       1    2496 ps
2497    2493    2496       1    2496 cat2

run_snippet bin/osh bgpipe -
[%1] PGID 2506 Done
[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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2500    1836       1       1       1 python2
   2501    2500       1       1       1 time-helper
   2502    2501       1       1       1 bash
   2503    2502       1       1       1 python2
   2506    2503       1       1       1 ps
   2507    2503       1       1       1 cat
   2508    2503       1       1       1 cat2

run_snippet bin/osh bgpipe yes
[%1] PID 2519 Started
[%1] PGID 2517 Done
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2514 sh
      7       1       1       1    2514 bash
     20       7       1       1    2514 bash
   1359      20       1       1    2514 python2
   1360    1359       1       1    2514 time-helper
   1361    1360       1       1    2514 bash
   1836    1361       1       1    2514 bash
   2511    1836       1       1    2514 python2
   2512    2511       1       1    2514 time-helper
   2513    2512       1       1    2514 bash
   2514    2513    2514       1    2514 python2
   2517    2514    2517       1    2514 ps
   2518    2514    2517       1    2514 cat
   2519    2514    2517       1    2514 cat2

run_snippet bin/osh bgpipe-lastpipe -
[%1] PGID 2528 Done
[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
1359      20       1       1       1 python2
1360    1359       1       1       1 time-helper
1361    1360       1       1       1 bash
1836    1361       1       1       1 bash
2522    1836       1       1       1 python2
2523    2522       1       1       1 time-helper
2524    2523       1       1       1 bash
2525    2524       1       1       1 python2
2528    2525       1       1       1 ps
2529    2525       1       1       1 cat2
2530    2525       1       1       1 python2

run_snippet bin/osh bgpipe-lastpipe yes
[%1] PID 2541 Started
[%1] PGID 2539 Done
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    2536 sh
7       1       1       1    2536 bash
20       7       1       1    2536 bash
1359      20       1       1    2536 python2
1360    1359       1       1    2536 time-helper
1361    1360       1       1    2536 bash
1836    1361       1       1    2536 bash
2533    1836       1       1    2536 python2
2534    2533       1       1    2536 time-helper
2535    2534       1       1    2536 bash
2536    2535    2536       1    2536 python2
2539    2536    2539       1    2536 ps
2540    2536    2539       1    2536 cat2
2541    2536    2539       1    2536 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2544    1836       1       1       1 python2
   2545    2544       1       1       1 time-helper
   2546    2545       1       1       1 bash
   2547    2546       1       1       1 python2
   2550    2547       1       1       1 python2
   2551    2550       1       1       1 ps
ALIVE

run_snippet bin/osh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2560 sh
      7       1       1       1    2560 bash
     20       7       1       1    2560 bash
   1359      20       1       1    2560 python2
   1360    1359       1       1    2560 time-helper
   1361    1360       1       1    2560 bash
   1836    1361       1       1    2560 bash
   2554    1836       1       1    2560 python2
   2555    2554       1       1    2560 time-helper
   2556    2555       1       1    2560 bash
   2557    2556    2557       1    2560 python2
   2560    2557    2560       1    2560 python2
   2561    2560    2560       1    2560 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2564    1836       1       1       1 python2
   2565    2564       1       1       1 time-helper
   2566    2565       1       1       1 bash
   2567    2566       1       1       1 python2
   2570    2567       1       1       1 ps

run_snippet bin/osh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2576 sh
      7       1       1       1    2576 bash
     20       7       1       1    2576 bash
   1359      20       1       1    2576 python2
   1360    1359       1       1    2576 time-helper
   1361    1360       1       1    2576 bash
   1836    1361       1       1    2576 bash
   2573    1836       1       1    2576 python2
   2574    2573       1       1    2576 time-helper
   2575    2574       1       1    2576 bash
   2576    2575    2576       1    2576 python2
   2579    2576    2576       1    2576 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2582    1836       1       1       1 python2
   2583    2582       1       1       1 time-helper
   2584    2583       1       1       1 bash
   2585    2584       1       1       1 python2
   2588    2585       1       1       1 ps
   2589    2585       1       1       1 cat

run_snippet bin/osh psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2599 sh
      7       1       1       1    2599 bash
     20       7       1       1    2599 bash
   1359      20       1       1    2599 python2
   1360    1359       1       1    2599 time-helper
   1361    1360       1       1    2599 bash
   1836    1361       1       1    2599 bash
   2592    1836       1       1    2599 python2
   2593    2592       1       1    2599 time-helper
   2594    2593       1       1    2599 bash
   2595    2594    2595       1    2599 python2
   2598    2595    2598       1    2599 ps
   2599    2595    2599       1    2599 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2602    1836       1       1       1 python2
   2603    2602       1       1       1 time-helper
   2604    2603       1       1       1 bash
   2605    2604       1       1       1 osh
   2606    2605       1       1       1 ps

run_snippet _bin/cxx-dbg/osh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2613 sh
      7       1       1       1    2613 bash
     20       7       1       1    2613 bash
   1359      20       1       1    2613 python2
   1360    1359       1       1    2613 time-helper
   1361    1360       1       1    2613 bash
   1836    1361       1       1    2613 bash
   2609    1836       1       1    2613 python2
   2610    2609       1       1    2613 time-helper
   2611    2610       1       1    2613 bash
   2612    2611    2612       1    2613 osh
   2613    2612    2613       1    2613 ps

run_snippet _bin/cxx-dbg/osh bgproc -
[%1] PID 2620 Done
[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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2616    1836       1       1       1 python2
   2617    2616       1       1       1 time-helper
   2618    2617       1       1       1 bash
   2619    2618       1       1       1 osh
   2620    2619       1       1       1 ps

run_snippet _bin/cxx-dbg/osh bgproc yes
[%1] PID 2627 Started
[%1] PID 2627 Done
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2626 sh
      7       1       1       1    2626 bash
     20       7       1       1    2626 bash
   1359      20       1       1    2626 python2
   1360    1359       1       1    2626 time-helper
   1361    1360       1       1    2626 bash
   1836    1361       1       1    2626 bash
   2623    1836       1       1    2626 python2
   2624    2623       1       1    2626 time-helper
   2625    2624       1       1    2626 bash
   2626    2625    2626       1    2626 osh
   2627    2626    2627       1    2626 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2630    1836       1       1       1 python2
   2631    2630       1       1       1 time-helper
   2632    2631       1       1       1 bash
   2633    2632       1       1       1 osh
   2634    2633       1       1       1 ps
   2635    2633       1       1       1 cat
   2636    2633       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    2643 sh
      7       1       1       1    2643 bash
     20       7       1       1    2643 bash
   1359      20       1       1    2643 python2
   1360    1359       1       1    2643 time-helper
   1361    1360       1       1    2643 bash
   1836    1361       1       1    2643 bash
   2639    1836       1       1    2643 python2
   2640    2639       1       1    2643 time-helper
   2641    2640       1       1    2643 bash
   2642    2641    2642       1    2643 osh
   2643    2642    2643       1    2643 ps
   2644    2642    2643       1    2643 cat
   2645    2642    2643       1    2643 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
1359      20       1       1       1 python2
1360    1359       1       1       1 time-helper
1361    1360       1       1       1 bash
1836    1361       1       1       1 bash
2648    1836       1       1       1 python2
2649    2648       1       1       1 time-helper
2650    2649       1       1       1 bash
2651    2650       1       1       1 osh
2652    2651       1       1       1 ps
2653    2651       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    2660 sh
7       1       1       1    2660 bash
20       7       1       1    2660 bash
1359      20       1       1    2660 python2
1360    1359       1       1    2660 time-helper
1361    1360       1       1    2660 bash
1836    1361       1       1    2660 bash
2656    1836       1       1    2660 python2
2657    2656       1       1    2660 time-helper
2658    2657       1       1    2660 bash
2659    2658    2659       1    2660 osh
2660    2659    2660       1    2660 ps
2661    2659    2660       1    2660 cat2

run_snippet _bin/cxx-dbg/osh bgpipe -
[%1] PGID 2668 Done
[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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2664    1836       1       1       1 python2
   2665    2664       1       1       1 time-helper
   2666    2665       1       1       1 bash
   2667    2666       1       1       1 osh
   2668    2667       1       1       1 ps
   2669    2667       1       1       1 cat
   2670    2667       1       1       1 cat2

run_snippet _bin/cxx-dbg/osh bgpipe yes
[%1] PID 2679 Started
[%1] PGID 2677 Done
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2676 sh
      7       1       1       1    2676 bash
     20       7       1       1    2676 bash
   1359      20       1       1    2676 python2
   1360    1359       1       1    2676 time-helper
   1361    1360       1       1    2676 bash
   1836    1361       1       1    2676 bash
   2673    1836       1       1    2676 python2
   2674    2673       1       1    2676 time-helper
   2675    2674       1       1    2676 bash
   2676    2675    2676       1    2676 osh
   2677    2676    2677       1    2676 ps
   2678    2676    2677       1    2676 cat
   2679    2676    2677       1    2676 cat2

run_snippet _bin/cxx-dbg/osh bgpipe-lastpipe -
[%1] PGID 2686 Done
[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
1359      20       1       1       1 python2
1360    1359       1       1       1 time-helper
1361    1360       1       1       1 bash
1836    1361       1       1       1 bash
2682    1836       1       1       1 python2
2683    2682       1       1       1 time-helper
2684    2683       1       1       1 bash
2685    2684       1       1       1 osh
2686    2685       1       1       1 ps
2687    2685       1       1       1 cat2
2688    2685       1       1       1 osh

run_snippet _bin/cxx-dbg/osh bgpipe-lastpipe yes
[%1] PID 2697 Started
[%1] PGID 2695 Done
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    2694 sh
7       1       1       1    2694 bash
20       7       1       1    2694 bash
1359      20       1       1    2694 python2
1360    1359       1       1    2694 time-helper
1361    1360       1       1    2694 bash
1836    1361       1       1    2694 bash
2691    1836       1       1    2694 python2
2692    2691       1       1    2694 time-helper
2693    2692       1       1    2694 bash
2694    2693    2694       1    2694 osh
2695    2694    2695       1    2694 ps
2696    2694    2695       1    2694 cat2
2697    2694    2695       1    2694 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2700    1836       1       1       1 python2
   2701    2700       1       1       1 time-helper
   2702    2701       1       1       1 bash
   2703    2702       1       1       1 osh
   2704    2703       1       1       1 osh
   2705    2704       1       1       1 ps
ALIVE

run_snippet _bin/cxx-dbg/osh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2712 sh
      7       1       1       1    2712 bash
     20       7       1       1    2712 bash
   1359      20       1       1    2712 python2
   1360    1359       1       1    2712 time-helper
   1361    1360       1       1    2712 bash
   1836    1361       1       1    2712 bash
   2708    1836       1       1    2712 python2
   2709    2708       1       1    2712 time-helper
   2710    2709       1       1    2712 bash
   2711    2710    2711       1    2712 osh
   2712    2711    2712       1    2712 osh
   2713    2712    2712       1    2712 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2716    1836       1       1       1 python2
   2717    2716       1       1       1 time-helper
   2718    2717       1       1       1 bash
   2719    2718       1       1       1 osh
   2720    2719       1       1       1 ps

run_snippet _bin/cxx-dbg/osh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2726 sh
      7       1       1       1    2726 bash
     20       7       1       1    2726 bash
   1359      20       1       1    2726 python2
   1360    1359       1       1    2726 time-helper
   1361    1360       1       1    2726 bash
   1836    1361       1       1    2726 bash
   2723    1836       1       1    2726 python2
   2724    2723       1       1    2726 time-helper
   2725    2724       1       1    2726 bash
   2726    2725    2726       1    2726 osh
   2727    2726    2726       1    2726 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
   1359      20       1       1       1 python2
   1360    1359       1       1       1 time-helper
   1361    1360       1       1       1 bash
   1836    1361       1       1       1 bash
   2730    1836       1       1       1 python2
   2731    2730       1       1       1 time-helper
   2732    2731       1       1       1 bash
   2733    2732       1       1       1 osh
   2734    2733       1       1       1 ps
   2735    2733       1       1       1 cat

run_snippet _bin/cxx-dbg/osh psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2743 sh
      7       1       1       1    2743 bash
     20       7       1       1    2743 bash
   1359      20       1       1    2743 python2
   1360    1359       1       1    2743 time-helper
   1361    1360       1       1    2743 bash
   1836    1361       1       1    2743 bash
   2738    1836       1       1    2743 python2
   2739    2738       1       1    2743 time-helper
   2740    2739       1       1    2743 bash
   2741    2740    2741       1    2743 osh
   2742    2741    2742       1    2743 ps
   2743    2741    2743       1    2743 cat

Wrote _tmp/process-table/index.html