'_tmp/cat2' -> '/bin/cat'
[1/66] build-stamp-cpp _build/git-commit.txt _gen/cpp/build_stamp.h _gen/cpp/build_stamp.cc
[2/66] make-pystub _bin/shwrap/embedded_file_gen cpp/embedded_file_gen.py mycpp/mylib.py pylib/collections_.py
[3/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
[4/66] make-pystub _bin/shwrap/optview_gen core/optview_gen.py frontend/option_def.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] 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
[9/66] optview_gen > _gen/core/optview.h
[10/66] make-pystub _bin/shwrap/signal_gen frontend/signal_gen.py frontend/signal_def.py
[11/66] asdl_main cpp  data_lang/nil8.asdl _gen/data_lang/nil8.asdl _gen/data_lang/nil8.asdl_debug.py
[12/66] asdl_main cpp --no-pretty-print-methods asdl/hnode.asdl _gen/asdl/hnode.asdl _gen/asdl/hnode.asdl_debug.py
[13/66] consts_gen cpp _gen/frontend/id_kind.asdl
[14/66] asdl_main cpp  core/runtime.asdl _gen/core/runtime.asdl _gen/core/runtime.asdl_debug.py
[15/66] consts_gen cpp-consts _gen/frontend/consts
[16/66] asdl_main cpp  core/value.asdl _gen/core/value.asdl _gen/core/value.asdl_debug.py
[17/66] asdl_main cpp  display/pretty.asdl _gen/display/pretty.asdl _gen/display/pretty.asdl_debug.py
[18/66] consts_gen cpp _gen/frontend/option.asdl
[19/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
[20/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
[21/66] signal_gen cpp _gen/frontend/signal
[22/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
[23/66] flag_gen cpp _gen/frontend/arg_types
[24/66] asdl_main cpp --no-pretty-print-methods frontend/types.asdl _gen/frontend/types.asdl _gen/frontend/types.asdl_debug.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] cxx dbg '' mycpp/bump_leak_heap.cc _build/obj/cxx-dbg/mycpp/bump_leak_heap.o
[28/66] grammar_gen cpp ysh/grammar.pgen2 _gen/ysh
[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 '' _gen/core/value.asdl.cc _build/obj/cxx-dbg/_gen/core/value.asdl.o
[33/66] cxx dbg '' mycpp/gc_builtins.cc _build/obj/cxx-dbg/mycpp/gc_builtins.o
[34/66] cxx dbg '' mycpp/gc_iolib.cc _build/obj/cxx-dbg/mycpp/gc_iolib.o
[35/66] cxx dbg '' _gen/core/runtime.asdl.cc _build/obj/cxx-dbg/_gen/core/runtime.asdl.o
[36/66] cxx dbg '' mycpp/gc_mops.cc _build/obj/cxx-dbg/mycpp/gc_mops.o
[37/66] cxx dbg '' mycpp/hash.cc _build/obj/cxx-dbg/mycpp/hash.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 '' _gen/frontend/syntax.asdl.cc _build/obj/cxx-dbg/_gen/frontend/syntax.asdl.o
[42/66] cxx dbg '' cpp/fanos.cc _build/obj/cxx-dbg/cpp/fanos.o
[43/66] cxx dbg '' cpp/fanos_shared.c _build/obj/cxx-dbg/cpp/fanos_shared.o
[44/66] cxx dbg '' mycpp/mark_sweep_heap.cc _build/obj/cxx-dbg/mycpp/mark_sweep_heap.o
[45/66] cxx dbg '' cpp/core.cc _build/obj/cxx-dbg/cpp/core.o
[46/66] cxx dbg '' cpp/frontend_flag_spec.cc _build/obj/cxx-dbg/cpp/frontend_flag_spec.o
[47/66] cxx dbg '' cpp/frontend_pyreadline.cc _build/obj/cxx-dbg/cpp/frontend_pyreadline.o
[48/66] cxx dbg '' cpp/libc.cc _build/obj/cxx-dbg/cpp/libc.o
[49/66] cxx dbg '' cpp/frontend_match.cc _build/obj/cxx-dbg/cpp/frontend_match.o
[50/66] cxx dbg '' cpp/osh.cc _build/obj/cxx-dbg/cpp/osh.o
[51/66] cxx dbg '' cpp/pylib.cc _build/obj/cxx-dbg/cpp/pylib.o
[52/66] cxx dbg '' cpp/pgen2.cc _build/obj/cxx-dbg/cpp/pgen2.o
[53/66] cxx dbg '' cpp/osh_tdop.cc _build/obj/cxx-dbg/cpp/osh_tdop.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 '' _gen/frontend/consts.cc _build/obj/cxx-dbg/_gen/frontend/consts.o
[58/66] cxx dbg '' mycpp/gc_str.cc _build/obj/cxx-dbg/mycpp/gc_str.o
[59/66] cxx dbg '' _gen/frontend/signal.cc _build/obj/cxx-dbg/_gen/frontend/signal.o
[60/66] cxx dbg '' _gen/frontend/help_meta.cc _build/obj/cxx-dbg/_gen/frontend/help_meta.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 27 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 127 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   1822    1821       1       1       1 python2
   1823    1822       1       1       1 time-helper
   1824    1823       1       1       1 bash
   1825    1824       1       1       1 bash
   1826    1825       1       1       1 ps

run_snippet bash fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1833 sh
      7       1       1       1    1833 bash
     20       7       1       1    1833 bash
   1344      20       1       1    1833 python2
   1345    1344       1       1    1833 time-helper
   1346    1345       1       1    1833 bash
   1821    1346       1       1    1833 bash
   1829    1821       1       1    1833 python2
   1830    1829       1       1    1833 time-helper
   1831    1830       1       1    1833 bash
   1832    1831    1832       1    1833 bash
   1833    1832    1833       1    1833 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   1836    1821       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

run_snippet bash bgproc yes
[1] 1847
[1]+  Done                    ps -o $PS_COLS
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1846 sh
      7       1       1       1    1846 bash
     20       7       1       1    1846 bash
   1344      20       1       1    1846 python2
   1345    1344       1       1    1846 time-helper
   1346    1345       1       1    1846 bash
   1821    1346       1       1    1846 bash
   1843    1821       1       1    1846 python2
   1844    1843       1       1    1846 time-helper
   1845    1844       1       1    1846 bash
   1846    1845    1846       1    1846 bash
   1847    1846    1847       1    1846 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   1850    1821       1       1       1 python2
   1851    1850       1       1       1 time-helper
   1852    1851       1       1       1 bash
   1853    1852       1       1       1 bash
   1854    1853       1       1       1 ps
   1855    1853       1       1       1 cat
   1856    1853       1       1       1 cat2

run_snippet bash fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1863 sh
      7       1       1       1    1863 bash
     20       7       1       1    1863 bash
   1344      20       1       1    1863 python2
   1345    1344       1       1    1863 time-helper
   1346    1345       1       1    1863 bash
   1821    1346       1       1    1863 bash
   1859    1821       1       1    1863 python2
   1860    1859       1       1    1863 time-helper
   1861    1860       1       1    1863 bash
   1862    1861    1862       1    1863 bash
   1863    1862    1863       1    1863 ps
   1864    1862    1863       1    1863 cat
   1865    1862    1863       1    1863 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
1344      20       1       1       1 python2
1345    1344       1       1       1 time-helper
1346    1345       1       1       1 bash
1821    1346       1       1       1 bash
1868    1821       1       1       1 python2
1869    1868       1       1       1 time-helper
1870    1869       1       1       1 bash
1871    1870       1       1       1 bash
1872    1871       1       1       1 ps
1873    1871       1       1       1 cat2
1874    1871       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    1881 sh
7       1       1       1    1881 bash
20       7       1       1    1881 bash
1344      20       1       1    1881 python2
1345    1344       1       1    1881 time-helper
1346    1345       1       1    1881 bash
1821    1346       1       1    1881 bash
1877    1821       1       1    1881 python2
1878    1877       1       1    1881 time-helper
1879    1878       1       1    1881 bash
1880    1879    1880       1    1881 bash
1881    1880    1881       1    1881 ps
1882    1880    1881       1    1881 cat2
1883    1880    1881       1    1881 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   1886    1821       1       1       1 python2
   1887    1886       1       1       1 time-helper
   1888    1887       1       1       1 bash
   1889    1888       1       1       1 bash
   1890    1889       1       1       1 ps
   1891    1889       1       1       1 cat
   1892    1889       1       1       1 cat2

run_snippet bash bgpipe yes
[1] 1901
[1]+  Done                    ps -o $PS_COLS | cat | _tmp/cat2
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1898 sh
      7       1       1       1    1898 bash
     20       7       1       1    1898 bash
   1344      20       1       1    1898 python2
   1345    1344       1       1    1898 time-helper
   1346    1345       1       1    1898 bash
   1821    1346       1       1    1898 bash
   1895    1821       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    1899       1    1898 ps
   1900    1898    1899       1    1898 cat
   1901    1898    1899       1    1898 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
1344      20       1       1       1 python2
1345    1344       1       1       1 time-helper
1346    1345       1       1       1 bash
1821    1346       1       1       1 bash
1904    1821       1       1       1 python2
1905    1904       1       1       1 time-helper
1906    1905       1       1       1 bash
1907    1906       1       1       1 bash
1908    1907       1       1       1 ps
1909    1907       1       1       1 cat2
1910    1907       1       1       1 bash

run_snippet bash bgpipe-lastpipe yes
[1] 1919
[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    1916 sh
7       1       1       1    1916 bash
20       7       1       1    1916 bash
1344      20       1       1    1916 python2
1345    1344       1       1    1916 time-helper
1346    1345       1       1    1916 bash
1821    1346       1       1    1916 bash
1913    1821       1       1    1916 python2
1914    1913       1       1    1916 time-helper
1915    1914       1       1    1916 bash
1916    1915    1916       1    1916 bash
1917    1916    1917       1    1916 ps
1918    1916    1917       1    1916 cat2
1919    1916    1917       1    1916 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   1922    1821       1       1       1 python2
   1923    1922       1       1       1 time-helper
   1924    1923       1       1       1 bash
   1925    1924       1       1       1 bash
   1926    1925       1       1       1 bash
   1927    1926       1       1       1 ps
ALIVE

run_snippet bash subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1934 sh
      7       1       1       1    1934 bash
     20       7       1       1    1934 bash
   1344      20       1       1    1934 python2
   1345    1344       1       1    1934 time-helper
   1346    1345       1       1    1934 bash
   1821    1346       1       1    1934 bash
   1930    1821       1       1    1934 python2
   1931    1930       1       1    1934 time-helper
   1932    1931       1       1    1934 bash
   1933    1932    1933       1    1934 bash
   1934    1933    1934       1    1934 bash
   1935    1934    1934       1    1934 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   1938    1821       1       1       1 python2
   1939    1938       1       1       1 time-helper
   1940    1939       1       1       1 bash
   1941    1940       1       1       1 bash
   1942    1941       1       1       1 ps

run_snippet bash csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1948 sh
      7       1       1       1    1948 bash
     20       7       1       1    1948 bash
   1344      20       1       1    1948 python2
   1345    1344       1       1    1948 time-helper
   1346    1345       1       1    1948 bash
   1821    1346       1       1    1948 bash
   1945    1821       1       1    1948 python2
   1946    1945       1       1    1948 time-helper
   1947    1946       1       1    1948 bash
   1948    1947    1948       1    1948 bash
   1949    1948    1948       1    1948 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   1952    1821       1       1       1 python2
   1953    1952       1       1       1 time-helper
   1954    1953       1       1       1 bash
   1955    1954       1       1       1 bash
   1956    1955       1       1       1 bash
   1957    1955       1       1       1 cat
   1958    1956       1       1       1 ps

run_snippet bash psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1966 sh
      7       1       1       1    1966 bash
     20       7       1       1    1966 bash
   1344      20       1       1    1966 python2
   1345    1344       1       1    1966 time-helper
   1346    1345       1       1    1966 bash
   1821    1346       1       1    1966 bash
   1961    1821       1       1    1966 python2
   1962    1961       1       1    1966 time-helper
   1963    1962       1       1    1966 bash
   1964    1963    1964       1    1966 bash
   1965    1964    1964       1    1966 bash
   1966    1964    1966       1    1966 cat
   1967    1965    1964       1    1966 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   1970    1821       1       1       1 python2
   1971    1970       1       1       1 time-helper
   1972    1971       1       1       1 bash
   1973    1972       1       1       1 dash
   1974    1973       1       1       1 ps

run_snippet dash fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1981 sh
      7       1       1       1    1981 bash
     20       7       1       1    1981 bash
   1344      20       1       1    1981 python2
   1345    1344       1       1    1981 time-helper
   1346    1345       1       1    1981 bash
   1821    1346       1       1    1981 bash
   1977    1821       1       1    1981 python2
   1978    1977       1       1    1981 time-helper
   1979    1978       1       1    1981 bash
   1980    1979    1980       1    1981 dash
   1981    1980    1981       1    1981 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   1984    1821       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

run_snippet dash bgproc yes
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1994 sh
      7       1       1       1    1994 bash
     20       7       1       1    1994 bash
   1344      20       1       1    1994 python2
   1345    1344       1       1    1994 time-helper
   1346    1345       1       1    1994 bash
   1821    1346       1       1    1994 bash
   1991    1821       1       1    1994 python2
   1992    1991       1       1    1994 time-helper
   1993    1992       1       1    1994 bash
   1994    1993    1994       1    1994 dash
   1995    1994    1995       1    1994 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   1998    1821       1       1       1 python2
   1999    1998       1       1       1 time-helper
   2000    1999       1       1       1 bash
   2001    2000       1       1       1 dash
   2002    2001       1       1       1 ps
   2003    2001       1       1       1 cat
   2004    2001       1       1       1 cat2

run_snippet dash fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2011 sh
      7       1       1       1    2011 bash
     20       7       1       1    2011 bash
   1344      20       1       1    2011 python2
   1345    1344       1       1    2011 time-helper
   1346    1345       1       1    2011 bash
   1821    1346       1       1    2011 bash
   2007    1821       1       1    2011 python2
   2008    2007       1       1    2011 time-helper
   2009    2008       1       1    2011 bash
   2010    2009    2010       1    2011 dash
   2011    2010    2011       1    2011 ps
   2012    2010    2011       1    2011 cat
   2013    2010    2011       1    2011 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
1344      20       1       1       1 python2
1345    1344       1       1       1 time-helper
1346    1345       1       1       1 bash
1821    1346       1       1       1 bash
2016    1821       1       1       1 python2
2017    2016       1       1       1 time-helper
2018    2017       1       1       1 bash
2019    2018       1       1       1 dash
2020    2019       1       1       1 ps
2021    2019       1       1       1 cat2
2022    2019       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    2029 sh
7       1       1       1    2029 bash
20       7       1       1    2029 bash
1344      20       1       1    2029 python2
1345    1344       1       1    2029 time-helper
1346    1345       1       1    2029 bash
1821    1346       1       1    2029 bash
2025    1821       1       1    2029 python2
2026    2025       1       1    2029 time-helper
2027    2026       1       1    2029 bash
2028    2027    2028       1    2029 dash
2029    2028    2029       1    2029 ps
2030    2028    2029       1    2029 cat2
2031    2028    2029       1    2029 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2034    1821       1       1       1 python2
   2035    2034       1       1       1 time-helper
   2036    2035       1       1       1 bash
   2037    2036       1       1       1 dash
   2038    2037       1       1       1 ps
   2039    2037       1       1       1 cat
   2040    2037       1       1       1 cat2

run_snippet dash bgpipe yes
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2046 sh
      7       1       1       1    2046 bash
     20       7       1       1    2046 bash
   1344      20       1       1    2046 python2
   1345    1344       1       1    2046 time-helper
   1346    1345       1       1    2046 bash
   1821    1346       1       1    2046 bash
   2043    1821       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    2047       1    2046 ps
   2048    2046    2047       1    2046 cat
   2049    2046    2047       1    2046 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
1344      20       1       1       1 python2
1345    1344       1       1       1 time-helper
1346    1345       1       1       1 bash
1821    1346       1       1       1 bash
2052    1821       1       1       1 python2
2053    2052       1       1       1 time-helper
2054    2053       1       1       1 bash
2055    2054       1       1       1 dash
2056    2055       1       1       1 ps
2057    2055       1       1       1 cat2
2058    2055       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    2064 sh
7       1       1       1    2064 bash
20       7       1       1    2064 bash
1344      20       1       1    2064 python2
1345    1344       1       1    2064 time-helper
1346    1345       1       1    2064 bash
1821    1346       1       1    2064 bash
2061    1821       1       1    2064 python2
2062    2061       1       1    2064 time-helper
2063    2062       1       1    2064 bash
2064    2063    2064       1    2064 dash
2065    2064    2065       1    2064 ps
2066    2064    2065       1    2064 cat2
2067    2064    2065       1    2064 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2070    1821       1       1       1 python2
   2071    2070       1       1       1 time-helper
   2072    2071       1       1       1 bash
   2073    2072       1       1       1 dash
   2074    2073       1       1       1 dash
   2075    2074       1       1       1 ps
ALIVE

run_snippet dash subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2082 sh
      7       1       1       1    2082 bash
     20       7       1       1    2082 bash
   1344      20       1       1    2082 python2
   1345    1344       1       1    2082 time-helper
   1346    1345       1       1    2082 bash
   1821    1346       1       1    2082 bash
   2078    1821       1       1    2082 python2
   2079    2078       1       1    2082 time-helper
   2080    2079       1       1    2082 bash
   2081    2080    2081       1    2082 dash
   2082    2081    2082       1    2082 dash
   2083    2082    2082       1    2082 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2086    1821       1       1       1 python2
   2087    2086       1       1       1 time-helper
   2088    2087       1       1       1 bash
   2089    2088       1       1       1 dash
   2090    2089       1       1       1 ps

run_snippet dash csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2096 sh
      7       1       1       1    2096 bash
     20       7       1       1    2096 bash
   1344      20       1       1    2096 python2
   1345    1344       1       1    2096 time-helper
   1346    1345       1       1    2096 bash
   1821    1346       1       1    2096 bash
   2093    1821       1       1    2096 python2
   2094    2093       1       1    2096 time-helper
   2095    2094       1       1    2096 bash
   2096    2095    2096       1    2096 dash
   2097    2096    2096       1    2096 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2112    1821       1       1       1 python2
   2113    2112       1       1       1 time-helper
   2114    2113       1       1       1 bash
   2115    2114       1       1       1 mksh
   2116    2115       1       1       1 ps

run_snippet mksh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2123 sh
      7       1       1       1    2123 bash
     20       7       1       1    2123 bash
   1344      20       1       1    2123 python2
   1345    1344       1       1    2123 time-helper
   1346    1345       1       1    2123 bash
   1821    1346       1       1    2123 bash
   2119    1821       1       1    2123 python2
   2120    2119       1       1    2123 time-helper
   2121    2120       1       1    2123 bash
   2122    2121    2122       1    2123 mksh
   2123    2122    2123       1    2123 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2126    1821       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

run_snippet mksh bgproc yes
[1] 2137
[1] + Done                 \ps -o $PS_COLS 
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2136 sh
      7       1       1       1    2136 bash
     20       7       1       1    2136 bash
   1344      20       1       1    2136 python2
   1345    1344       1       1    2136 time-helper
   1346    1345       1       1    2136 bash
   1821    1346       1       1    2136 bash
   2133    1821       1       1    2136 python2
   2134    2133       1       1    2136 time-helper
   2135    2134       1       1    2136 bash
   2136    2135    2136       1    2136 mksh
   2137    2136    2137       1    2136 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2140    1821       1       1       1 python2
   2141    2140       1       1       1 time-helper
   2142    2141       1       1       1 bash
   2143    2142       1       1       1 mksh
   2144    2143       1       1       1 ps
   2145    2143       1       1       1 mksh
   2146    2143       1       1       1 cat2

run_snippet mksh fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2153 sh
      7       1       1       1    2153 bash
     20       7       1       1    2153 bash
   1344      20       1       1    2153 python2
   1345    1344       1       1    2153 time-helper
   1346    1345       1       1    2153 bash
   1821    1346       1       1    2153 bash
   2149    1821       1       1    2153 python2
   2150    2149       1       1    2153 time-helper
   2151    2150       1       1    2153 bash
   2152    2151    2152       1    2153 mksh
   2153    2152    2153       1    2153 ps
   2154    2152    2153       1    2153 mksh
   2155    2152    2153       1    2153 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
1344      20       1       1       1 python2
1345    1344       1       1       1 time-helper
1346    1345       1       1       1 bash
1821    1346       1       1       1 bash
2158    1821       1       1       1 python2
2159    2158       1       1       1 time-helper
2160    2159       1       1       1 bash
2161    2160       1       1       1 mksh
2162    2161       1       1       1 ps
2163    2161       1       1       1 cat2
2164    2161       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    2171 sh
7       1       1       1    2171 bash
20       7       1       1    2171 bash
1344      20       1       1    2171 python2
1345    1344       1       1    2171 time-helper
1346    1345       1       1    2171 bash
1821    1346       1       1    2171 bash
2167    1821       1       1    2171 python2
2168    2167       1       1    2171 time-helper
2169    2168       1       1    2171 bash
2170    2169    2170       1    2171 mksh
2171    2170    2171       1    2171 ps
2172    2170    2171       1    2171 cat2
2173    2170    2171       1    2171 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2176    1821       1       1       1 python2
   2177    2176       1       1       1 time-helper
   2178    2177       1       1       1 bash
   2179    2178       1       1       1 mksh
   2180    2179       1       1       1 ps
   2181    2179       1       1       1 mksh
   2182    2179       1       1       1 cat2

run_snippet mksh bgpipe yes
[1] 2189 2190 2191
[1] + Done                 \ps -o $PS_COLS | \cat | _tmp/cat2 
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2188 sh
      7       1       1       1    2188 bash
     20       7       1       1    2188 bash
   1344      20       1       1    2188 python2
   1345    1344       1       1    2188 time-helper
   1346    1345       1       1    2188 bash
   1821    1346       1       1    2188 bash
   2185    1821       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    2189       1    2188 ps
   2190    2188    2189       1    2188 mksh
   2191    2188    2189       1    2188 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
1344      20       1       1       1 python2
1345    1344       1       1       1 time-helper
1346    1345       1       1       1 bash
1821    1346       1       1       1 bash
2194    1821       1       1       1 python2
2195    2194       1       1       1 time-helper
2196    2195       1       1       1 bash
2197    2196       1       1       1 mksh
2198    2197       1       1       1 ps
2199    2197       1       1       1 cat2
2200    2197       1       1       1 mksh

run_snippet mksh bgpipe-lastpipe yes
[1] 2207 2208 2209
[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    2206 sh
7       1       1       1    2206 bash
20       7       1       1    2206 bash
1344      20       1       1    2206 python2
1345    1344       1       1    2206 time-helper
1346    1345       1       1    2206 bash
1821    1346       1       1    2206 bash
2203    1821       1       1    2206 python2
2204    2203       1       1    2206 time-helper
2205    2204       1       1    2206 bash
2206    2205    2206       1    2206 mksh
2207    2206    2207       1    2206 ps
2208    2206    2207       1    2206 cat2
2209    2206    2207       1    2206 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2212    1821       1       1       1 python2
   2213    2212       1       1       1 time-helper
   2214    2213       1       1       1 bash
   2215    2214       1       1       1 mksh
   2216    2215       1       1       1 mksh
   2217    2216       1       1       1 ps
ALIVE

run_snippet mksh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2224 sh
      7       1       1       1    2224 bash
     20       7       1       1    2224 bash
   1344      20       1       1    2224 python2
   1345    1344       1       1    2224 time-helper
   1346    1345       1       1    2224 bash
   1821    1346       1       1    2224 bash
   2220    1821       1       1    2224 python2
   2221    2220       1       1    2224 time-helper
   2222    2221       1       1    2224 bash
   2223    2222    2223       1    2224 mksh
   2224    2223    2224       1    2224 mksh
   2225    2224    2224       1    2224 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2228    1821       1       1       1 python2
   2229    2228       1       1       1 time-helper
   2230    2229       1       1       1 bash
   2231    2230       1       1       1 mksh
   2232    2231       1       1       1 ps

run_snippet mksh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2238 sh
      7       1       1       1    2238 bash
     20       7       1       1    2238 bash
   1344      20       1       1    2238 python2
   1345    1344       1       1    2238 time-helper
   1346    1345       1       1    2238 bash
   1821    1346       1       1    2238 bash
   2235    1821       1       1    2238 python2
   2236    2235       1       1    2238 time-helper
   2237    2236       1       1    2238 bash
   2238    2237    2238       1    2238 mksh
   2239    2238    2238       1    2238 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2254    1821       1       1       1 python2
   2255    2254       1       1       1 time-helper
   2256    2255       1       1       1 bash
   2257    2256       1       1       1 zsh
   2258    2257       1       1       1 ps

run_snippet zsh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2266 sh
      7       1       1       1    2266 bash
     20       7       1       1    2266 bash
   1344      20       1       1    2266 python2
   1345    1344       1       1    2266 time-helper
   1346    1345       1       1    2266 bash
   1821    1346       1       1    2266 bash
   2261    1821       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

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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2269    1821       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 bgproc yes
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2279 sh
      7       1       1       1    2279 bash
     20       7       1       1    2279 bash
   1344      20       1       1    2279 python2
   1345    1344       1       1    2279 time-helper
   1346    1345       1       1    2279 bash
   1821    1346       1       1    2279 bash
   2276    1821       1       1    2279 python2
   2277    2276       1       1    2279 time-helper
   2278    2277       1       1    2279 bash
   2279    2278    2279       1    2279 zsh
   2281    2279    2281       1    2279 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2284    1821       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
   2289    2287       1       1       1 cat
   2290    2287       1       1       1 cat2

run_snippet zsh fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2298 sh
      7       1       1       1    2298 bash
     20       7       1       1    2298 bash
   1344      20       1       1    2298 python2
   1345    1344       1       1    2298 time-helper
   1346    1345       1       1    2298 bash
   1821    1346       1       1    2298 bash
   2293    1821       1       1    2298 python2
   2294    2293       1       1    2298 time-helper
   2295    2294       1       1    2298 bash
   2296    2295    2296       1    2298 zsh
   2298    2296    2298       1    2298 ps
   2299    2296    2298       1    2298 cat
   2300    2296    2298       1    2298 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
1344      20       1       1       1 python2
1345    1344       1       1       1 time-helper
1346    1345       1       1       1 bash
1821    1346       1       1       1 bash
2303    1821       1       1       1 python2
2304    2303       1       1       1 time-helper
2305    2304       1       1       1 bash
2306    2305       1       1       1 zsh
2307    2306       1       1       1 ps
2308    2306       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    2316 sh
7       1       1       1    2316 bash
20       7       1       1    2316 bash
1344      20       1       1    2316 python2
1345    1344       1       1    2316 time-helper
1346    1345       1       1    2316 bash
1821    1346       1       1    2316 bash
2311    1821       1       1    2316 python2
2312    2311       1       1    2316 time-helper
2313    2312       1       1    2316 bash
2314    2313    2314       1    2316 zsh
2316    2314    2316       1    2316 ps
2317    2314    2316       1    2316 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2320    1821       1       1       1 python2
   2321    2320       1       1       1 time-helper
   2322    2321       1       1       1 bash
   2323    2322       1       1       1 zsh
   2324    2323       1       1       1 ps
   2325    2323       1       1       1 cat
   2326    2323       1       1       1 cat2

run_snippet zsh bgpipe yes
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2332 sh
      7       1       1       1    2332 bash
     20       7       1       1    2332 bash
   1344      20       1       1    2332 python2
   1345    1344       1       1    2332 time-helper
   1346    1345       1       1    2332 bash
   1821    1346       1       1    2332 bash
   2329    1821       1       1    2332 python2
   2330    2329       1       1    2332 time-helper
   2331    2330       1       1    2332 bash
   2332    2331    2332       1    2332 zsh
   2334    2332    2334       1    2332 ps
   2335    2332    2334       1    2332 cat
   2336    2332    2334       1    2332 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
1344      20       1       1       1 python2
1345    1344       1       1       1 time-helper
1346    1345       1       1       1 bash
1821    1346       1       1       1 bash
2339    1821       1       1       1 python2
2340    2339       1       1       1 time-helper
2341    2340       1       1       1 bash
2342    2341       1       1       1 zsh
2343    2342       1       1       1 ps
2344    2342       1       1       1 cat2
2345    2342       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    2351 sh
7       1       1       1    2351 bash
20       7       1       1    2351 bash
1344      20       1       1    2351 python2
1345    1344       1       1    2351 time-helper
1346    1345       1       1    2351 bash
1821    1346       1       1    2351 bash
2348    1821       1       1    2351 python2
2349    2348       1       1    2351 time-helper
2350    2349       1       1    2351 bash
2351    2350    2351       1    2351 zsh
2353    2351    2353       1    2351 ps
2354    2351    2353       1    2351 cat2
2355    2351    2353       1    2351 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2358    1821       1       1       1 python2
   2359    2358       1       1       1 time-helper
   2360    2359       1       1       1 bash
   2361    2360       1       1       1 zsh
   2362    2361       1       1       1 zsh
   2363    2362       1       1       1 ps
ALIVE

run_snippet zsh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2371 sh
      7       1       1       1    2371 bash
     20       7       1       1    2371 bash
   1344      20       1       1    2371 python2
   1345    1344       1       1    2371 time-helper
   1346    1345       1       1    2371 bash
   1821    1346       1       1    2371 bash
   2366    1821       1       1    2371 python2
   2367    2366       1       1    2371 time-helper
   2368    2367       1       1    2371 bash
   2369    2368    2369       1    2371 zsh
   2371    2369    2371       1    2371 zsh
   2372    2371    2371       1    2371 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2375    1821       1       1       1 python2
   2376    2375       1       1       1 time-helper
   2377    2376       1       1       1 bash
   2378    2377       1       1       1 zsh
   2379    2378       1       1       1 ps

run_snippet zsh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2385 sh
      7       1       1       1    2385 bash
     20       7       1       1    2385 bash
   1344      20       1       1    2385 python2
   1345    1344       1       1    2385 time-helper
   1346    1345       1       1    2385 bash
   1821    1346       1       1    2385 bash
   2382    1821       1       1    2385 python2
   2383    2382       1       1    2385 time-helper
   2384    2383       1       1    2385 bash
   2385    2384    2385       1    2385 zsh
   2387    2385    2385       1    2385 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2390    1821       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
   2395    2393       1       1       1 cat

run_snippet zsh psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2404 sh
      7       1       1       1    2404 bash
     20       7       1       1    2404 bash
   1344      20       1       1    2404 python2
   1345    1344       1       1    2404 time-helper
   1346    1345       1       1    2404 bash
   1821    1346       1       1    2404 bash
   2398    1821       1       1    2404 python2
   2399    2398       1       1    2404 time-helper
   2400    2399       1       1    2404 bash
   2401    2400    2401       1    2404 zsh
   2403    2401    2403       1    2404 ps
   2404    2401    2404       1    2404 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2407    1821       1       1       1 python2
   2408    2407       1       1       1 time-helper
   2409    2408       1       1       1 bash
   2410    2409       1       1       1 python2
   2413    2410       1       1       1 ps

run_snippet bin/osh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2422 sh
      7       1       1       1    2422 bash
     20       7       1       1    2422 bash
   1344      20       1       1    2422 python2
   1345    1344       1       1    2422 time-helper
   1346    1345       1       1    2422 bash
   1821    1346       1       1    2422 bash
   2416    1821       1       1    2422 python2
   2417    2416       1       1    2422 time-helper
   2418    2417       1       1    2422 bash
   2419    2418    2419       1    2422 python2
   2422    2419    2422       1    2422 ps

run_snippet bin/osh bgproc -
[%1] PID 2431 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2425    1821       1       1       1 python2
   2426    2425       1       1       1 time-helper
   2427    2426       1       1       1 bash
   2428    2427       1       1       1 python2
   2431    2428       1       1       1 ps

run_snippet bin/osh bgproc yes
[%1] PID 2440 Started
[%1] PID 2440 Done
[background 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
   1344      20       1       1    2437 python2
   1345    1344       1       1    2437 time-helper
   1346    1345       1       1    2437 bash
   1821    1346       1       1    2437 bash
   2434    1821       1       1    2437 python2
   2435    2434       1       1    2437 time-helper
   2436    2435       1       1    2437 bash
   2437    2436    2437       1    2437 python2
   2440    2437    2440       1    2437 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2443    1821       1       1       1 python2
   2444    2443       1       1       1 time-helper
   2445    2444       1       1       1 bash
   2446    2445       1       1       1 python2
   2449    2446       1       1       1 ps
   2450    2446       1       1       1 cat
   2451    2446       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    2460 sh
      7       1       1       1    2460 bash
     20       7       1       1    2460 bash
   1344      20       1       1    2460 python2
   1345    1344       1       1    2460 time-helper
   1346    1345       1       1    2460 bash
   1821    1346       1       1    2460 bash
   2454    1821       1       1    2460 python2
   2455    2454       1       1    2460 time-helper
   2456    2455       1       1    2460 bash
   2457    2456    2457       1    2460 python2
   2460    2457    2460       1    2460 ps
   2461    2457    2460       1    2460 cat
   2462    2457    2460       1    2460 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
1344      20       1       1       1 python2
1345    1344       1       1       1 time-helper
1346    1345       1       1       1 bash
1821    1346       1       1       1 bash
2465    1821       1       1       1 python2
2466    2465       1       1       1 time-helper
2467    2466       1       1       1 bash
2468    2467       1       1       1 python2
2471    2468       1       1       1 ps
2472    2468       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    2481 sh
7       1       1       1    2481 bash
20       7       1       1    2481 bash
1344      20       1       1    2481 python2
1345    1344       1       1    2481 time-helper
1346    1345       1       1    2481 bash
1821    1346       1       1    2481 bash
2475    1821       1       1    2481 python2
2476    2475       1       1    2481 time-helper
2477    2476       1       1    2481 bash
2478    2477    2478       1    2481 python2
2481    2478    2481       1    2481 ps
2482    2478    2481       1    2481 cat2

run_snippet bin/osh bgpipe -
[%1] PGID 2491 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2485    1821       1       1       1 python2
   2486    2485       1       1       1 time-helper
   2487    2486       1       1       1 bash
   2488    2487       1       1       1 python2
   2491    2488       1       1       1 ps
   2492    2488       1       1       1 cat
   2493    2488       1       1       1 cat2

run_snippet bin/osh bgpipe yes
[%1] PID 2504 Started
[%1] PGID 2502 Done
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2499 sh
      7       1       1       1    2499 bash
     20       7       1       1    2499 bash
   1344      20       1       1    2499 python2
   1345    1344       1       1    2499 time-helper
   1346    1345       1       1    2499 bash
   1821    1346       1       1    2499 bash
   2496    1821       1       1    2499 python2
   2497    2496       1       1    2499 time-helper
   2498    2497       1       1    2499 bash
   2499    2498    2499       1    2499 python2
   2502    2499    2502       1    2499 ps
   2503    2499    2502       1    2499 cat
   2504    2499    2502       1    2499 cat2

run_snippet bin/osh bgpipe-lastpipe -
[%1] PGID 2513 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
1344      20       1       1       1 python2
1345    1344       1       1       1 time-helper
1346    1345       1       1       1 bash
1821    1346       1       1       1 bash
2507    1821       1       1       1 python2
2508    2507       1       1       1 time-helper
2509    2508       1       1       1 bash
2510    2509       1       1       1 python2
2513    2510       1       1       1 ps
2514    2510       1       1       1 cat2
2515    2510       1       1       1 python2

run_snippet bin/osh bgpipe-lastpipe yes
[%1] PID 2526 Started
[%1] PGID 2524 Done
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    2521 sh
7       1       1       1    2521 bash
20       7       1       1    2521 bash
1344      20       1       1    2521 python2
1345    1344       1       1    2521 time-helper
1346    1345       1       1    2521 bash
1821    1346       1       1    2521 bash
2518    1821       1       1    2521 python2
2519    2518       1       1    2521 time-helper
2520    2519       1       1    2521 bash
2521    2520    2521       1    2521 python2
2524    2521    2524       1    2521 ps
2525    2521    2524       1    2521 cat2
2526    2521    2524       1    2521 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2529    1821       1       1       1 python2
   2530    2529       1       1       1 time-helper
   2531    2530       1       1       1 bash
   2532    2531       1       1       1 python2
   2535    2532       1       1       1 python2
   2536    2535       1       1       1 ps
ALIVE

run_snippet bin/osh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2545 sh
      7       1       1       1    2545 bash
     20       7       1       1    2545 bash
   1344      20       1       1    2545 python2
   1345    1344       1       1    2545 time-helper
   1346    1345       1       1    2545 bash
   1821    1346       1       1    2545 bash
   2539    1821       1       1    2545 python2
   2540    2539       1       1    2545 time-helper
   2541    2540       1       1    2545 bash
   2542    2541    2542       1    2545 python2
   2545    2542    2545       1    2545 python2
   2546    2545    2545       1    2545 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2549    1821       1       1       1 python2
   2550    2549       1       1       1 time-helper
   2551    2550       1       1       1 bash
   2552    2551       1       1       1 python2
   2555    2552       1       1       1 ps

run_snippet bin/osh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2561 sh
      7       1       1       1    2561 bash
     20       7       1       1    2561 bash
   1344      20       1       1    2561 python2
   1345    1344       1       1    2561 time-helper
   1346    1345       1       1    2561 bash
   1821    1346       1       1    2561 bash
   2558    1821       1       1    2561 python2
   2559    2558       1       1    2561 time-helper
   2560    2559       1       1    2561 bash
   2561    2560    2561       1    2561 python2
   2564    2561    2561       1    2561 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2567    1821       1       1       1 python2
   2568    2567       1       1       1 time-helper
   2569    2568       1       1       1 bash
   2570    2569       1       1       1 python2
   2573    2570       1       1       1 ps
   2574    2570       1       1       1 cat

run_snippet bin/osh psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2584 sh
      7       1       1       1    2584 bash
     20       7       1       1    2584 bash
   1344      20       1       1    2584 python2
   1345    1344       1       1    2584 time-helper
   1346    1345       1       1    2584 bash
   1821    1346       1       1    2584 bash
   2577    1821       1       1    2584 python2
   2578    2577       1       1    2584 time-helper
   2579    2578       1       1    2584 bash
   2580    2579    2580       1    2584 python2
   2583    2580    2583       1    2584 ps
   2584    2580    2584       1    2584 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2587    1821       1       1       1 python2
   2588    2587       1       1       1 time-helper
   2589    2588       1       1       1 bash
   2590    2589       1       1       1 osh
   2591    2590       1       1       1 ps

run_snippet _bin/cxx-dbg/osh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2598 sh
      7       1       1       1    2598 bash
     20       7       1       1    2598 bash
   1344      20       1       1    2598 python2
   1345    1344       1       1    2598 time-helper
   1346    1345       1       1    2598 bash
   1821    1346       1       1    2598 bash
   2594    1821       1       1    2598 python2
   2595    2594       1       1    2598 time-helper
   2596    2595       1       1    2598 bash
   2597    2596    2597       1    2598 osh
   2598    2597    2598       1    2598 ps

run_snippet _bin/cxx-dbg/osh bgproc -
[%1] PID 2605 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2601    1821       1       1       1 python2
   2602    2601       1       1       1 time-helper
   2603    2602       1       1       1 bash
   2604    2603       1       1       1 osh
   2605    2604       1       1       1 ps

run_snippet _bin/cxx-dbg/osh bgproc yes
[%1] PID 2612 Started
[%1] PID 2612 Done
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2611 sh
      7       1       1       1    2611 bash
     20       7       1       1    2611 bash
   1344      20       1       1    2611 python2
   1345    1344       1       1    2611 time-helper
   1346    1345       1       1    2611 bash
   1821    1346       1       1    2611 bash
   2608    1821       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

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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2615    1821       1       1       1 python2
   2616    2615       1       1       1 time-helper
   2617    2616       1       1       1 bash
   2618    2617       1       1       1 osh
   2619    2618       1       1       1 ps
   2620    2618       1       1       1 cat
   2621    2618       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    2628 sh
      7       1       1       1    2628 bash
     20       7       1       1    2628 bash
   1344      20       1       1    2628 python2
   1345    1344       1       1    2628 time-helper
   1346    1345       1       1    2628 bash
   1821    1346       1       1    2628 bash
   2624    1821       1       1    2628 python2
   2625    2624       1       1    2628 time-helper
   2626    2625       1       1    2628 bash
   2627    2626    2627       1    2628 osh
   2628    2627    2628       1    2628 ps
   2629    2627    2628       1    2628 cat
   2630    2627    2628       1    2628 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
1344      20       1       1       1 python2
1345    1344       1       1       1 time-helper
1346    1345       1       1       1 bash
1821    1346       1       1       1 bash
2633    1821       1       1       1 python2
2634    2633       1       1       1 time-helper
2635    2634       1       1       1 bash
2636    2635       1       1       1 osh
2637    2636       1       1       1 ps
2638    2636       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    2645 sh
7       1       1       1    2645 bash
20       7       1       1    2645 bash
1344      20       1       1    2645 python2
1345    1344       1       1    2645 time-helper
1346    1345       1       1    2645 bash
1821    1346       1       1    2645 bash
2641    1821       1       1    2645 python2
2642    2641       1       1    2645 time-helper
2643    2642       1       1    2645 bash
2644    2643    2644       1    2645 osh
2645    2644    2645       1    2645 ps
2646    2644    2645       1    2645 cat2

run_snippet _bin/cxx-dbg/osh bgpipe -
[%1] PGID 2653 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2649    1821       1       1       1 python2
   2650    2649       1       1       1 time-helper
   2651    2650       1       1       1 bash
   2652    2651       1       1       1 osh
   2653    2652       1       1       1 ps
   2654    2652       1       1       1 cat
   2655    2652       1       1       1 cat2

run_snippet _bin/cxx-dbg/osh bgpipe yes
[%1] PID 2664 Started
[%1] PGID 2662 Done
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2661 sh
      7       1       1       1    2661 bash
     20       7       1       1    2661 bash
   1344      20       1       1    2661 python2
   1345    1344       1       1    2661 time-helper
   1346    1345       1       1    2661 bash
   1821    1346       1       1    2661 bash
   2658    1821       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    2662       1    2661 ps
   2663    2661    2662       1    2661 cat
   2664    2661    2662       1    2661 cat2

run_snippet _bin/cxx-dbg/osh bgpipe-lastpipe -
[%1] PGID 2671 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
1344      20       1       1       1 python2
1345    1344       1       1       1 time-helper
1346    1345       1       1       1 bash
1821    1346       1       1       1 bash
2667    1821       1       1       1 python2
2668    2667       1       1       1 time-helper
2669    2668       1       1       1 bash
2670    2669       1       1       1 osh
2671    2670       1       1       1 ps
2672    2670       1       1       1 cat2
2673    2670       1       1       1 osh

run_snippet _bin/cxx-dbg/osh bgpipe-lastpipe yes
[%1] PID 2682 Started
[%1] PGID 2680 Done
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    2679 sh
7       1       1       1    2679 bash
20       7       1       1    2679 bash
1344      20       1       1    2679 python2
1345    1344       1       1    2679 time-helper
1346    1345       1       1    2679 bash
1821    1346       1       1    2679 bash
2676    1821       1       1    2679 python2
2677    2676       1       1    2679 time-helper
2678    2677       1       1    2679 bash
2679    2678    2679       1    2679 osh
2680    2679    2680       1    2679 ps
2681    2679    2680       1    2679 cat2
2682    2679    2680       1    2679 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2685    1821       1       1       1 python2
   2686    2685       1       1       1 time-helper
   2687    2686       1       1       1 bash
   2688    2687       1       1       1 osh
   2689    2688       1       1       1 osh
   2690    2689       1       1       1 ps
ALIVE

run_snippet _bin/cxx-dbg/osh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2697 sh
      7       1       1       1    2697 bash
     20       7       1       1    2697 bash
   1344      20       1       1    2697 python2
   1345    1344       1       1    2697 time-helper
   1346    1345       1       1    2697 bash
   1821    1346       1       1    2697 bash
   2693    1821       1       1    2697 python2
   2694    2693       1       1    2697 time-helper
   2695    2694       1       1    2697 bash
   2696    2695    2696       1    2697 osh
   2697    2696    2697       1    2697 osh
   2698    2697    2697       1    2697 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2701    1821       1       1       1 python2
   2702    2701       1       1       1 time-helper
   2703    2702       1       1       1 bash
   2704    2703       1       1       1 osh
   2705    2704       1       1       1 ps

run_snippet _bin/cxx-dbg/osh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2711 sh
      7       1       1       1    2711 bash
     20       7       1       1    2711 bash
   1344      20       1       1    2711 python2
   1345    1344       1       1    2711 time-helper
   1346    1345       1       1    2711 bash
   1821    1346       1       1    2711 bash
   2708    1821       1       1    2711 python2
   2709    2708       1       1    2711 time-helper
   2710    2709       1       1    2711 bash
   2711    2710    2711       1    2711 osh
   2712    2711    2711       1    2711 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
   1344      20       1       1       1 python2
   1345    1344       1       1       1 time-helper
   1346    1345       1       1       1 bash
   1821    1346       1       1       1 bash
   2715    1821       1       1       1 python2
   2716    2715       1       1       1 time-helper
   2717    2716       1       1       1 bash
   2718    2717       1       1       1 osh
   2719    2718       1       1       1 ps
   2720    2718       1       1       1 cat

run_snippet _bin/cxx-dbg/osh psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2728 sh
      7       1       1       1    2728 bash
     20       7       1       1    2728 bash
   1344      20       1       1    2728 python2
   1345    1344       1       1    2728 time-helper
   1346    1345       1       1    2728 bash
   1821    1346       1       1    2728 bash
   2723    1821       1       1    2728 python2
   2724    2723       1       1    2728 time-helper
   2725    2724       1       1    2728 bash
   2726    2725    2726       1    2728 osh
   2727    2726    2727       1    2728 ps
   2728    2726    2728       1    2728 cat

Wrote _tmp/process-table/index.html