'_tmp/cat2' -> '/bin/cat'
[1/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
[2/66] make-pystub _bin/shwrap/optview_gen core/optview_gen.py frontend/option_def.py
[3/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
[4/66] build-stamp-cpp _build/git-commit.txt _gen/cpp/build_stamp.h _gen/cpp/build_stamp.cc
[5/66] make-pystub _bin/shwrap/embedded_file_gen cpp/embedded_file_gen.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] embedded_file_gen _devbuild/help/data-errors _devbuild/help/data-front-end _devbuild/help/data-j8-notation _devbuild/help/help _devbuild/help/oils-usage _devbuild/help/osh-builtin-cmd _devbuild/help/osh-chapters _devbuild/help/osh-cmd-lang _devbuild/help/osh-front-end _devbuild/help/osh-mini-lang _devbuild/help/osh-option _devbuild/help/osh-osh-assign _devbuild/help/osh-plugin _devbuild/help/osh-special-var _devbuild/help/osh-stdlib _devbuild/help/osh-type-method _devbuild/help/osh-usage _devbuild/help/osh-word-lang _devbuild/help/ysh-builtin-cmd _devbuild/help/ysh-builtin-func _devbuild/help/ysh-chapters _devbuild/help/ysh-cmd-lang _devbuild/help/ysh-expr-lang _devbuild/help/ysh-front-end _devbuild/help/ysh-mini-lang _devbuild/help/ysh-option _devbuild/help/ysh-plugin _devbuild/help/ysh-special-var _devbuild/help/ysh-stdlib _devbuild/help/ysh-type-method _devbuild/help/ysh-usage _devbuild/help/ysh-word-lang _devbuild/help/ysh-ysh-cmd stdlib/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
[8/66] optview_gen > _gen/core/optview.h
[9/66] asdl_main cpp  data_lang/nil8.asdl _gen/data_lang/nil8.asdl _gen/data_lang/nil8.asdl_debug.py
[10/66] make-pystub _bin/shwrap/option_gen frontend/option_gen.py asdl/ast.py frontend/builtin_def.py frontend/option_def.py
[11/66] asdl_main cpp  core/runtime.asdl _gen/core/runtime.asdl _gen/core/runtime.asdl_debug.py
[12/66] make-pystub _bin/shwrap/signal_gen frontend/signal_gen.py frontend/signal_def.py
[13/66] asdl_main cpp --no-pretty-print-methods asdl/hnode.asdl _gen/asdl/hnode.asdl _gen/asdl/hnode.asdl_debug.py
[14/66] asdl_main cpp  core/value.asdl _gen/core/value.asdl _gen/core/value.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-consts _gen/frontend/consts
[17/66] consts_gen cpp _gen/frontend/id_kind.asdl
[18/66] flag_gen cpp _gen/frontend/arg_types
[19/66] signal_gen cpp _gen/frontend/signal
[20/66] consts_gen cpp _gen/frontend/option.asdl
[21/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 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
[22/66] asdl_main cpp --no-pretty-print-methods frontend/types.asdl _gen/frontend/types.asdl _gen/frontend/types.asdl_debug.py
[23/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
[24/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
[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 '' _gen/core/runtime.asdl.cc _build/obj/cxx-dbg/_gen/core/runtime.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/value.asdl.cc _build/obj/cxx-dbg/_gen/core/value.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/bin/text_files.cc _build/obj/cxx-dbg/_gen/bin/text_files.o
[40/66] cxx dbg '' _gen/cpp/build_stamp.cc _build/obj/cxx-dbg/_gen/cpp/build_stamp.o
[41/66] cxx dbg '' mycpp/mark_sweep_heap.cc _build/obj/cxx-dbg/mycpp/mark_sweep_heap.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 '' _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/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/osh_tdop.cc _build/obj/cxx-dbg/cpp/osh_tdop.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 '' mycpp/gc_str.cc _build/obj/cxx-dbg/mycpp/gc_str.o
[55/66] cxx dbg '' _gen/frontend/arg_types.cc _build/obj/cxx-dbg/_gen/frontend/arg_types.o
[56/66] cxx dbg '' _gen/data_lang/nil8.asdl.cc _build/obj/cxx-dbg/_gen/data_lang/nil8.asdl.o
[57/66] cxx dbg '' cpp/stdlib.cc _build/obj/cxx-dbg/cpp/stdlib.o
[58/66] cxx dbg '' _gen/frontend/consts.cc _build/obj/cxx-dbg/_gen/frontend/consts.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 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 125 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
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   1821    1820       1       1       1 python2
   1822    1821       1       1       1 time-helper
   1823    1822       1       1       1 bash
   1824    1823       1       1       1 bash
   1825    1824       1       1       1 ps

run_snippet bash fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1832 sh
      8       1       1       1    1832 bash
     21       8       1       1    1832 bash
   1343      21       1       1    1832 python2
   1344    1343       1       1    1832 time-helper
   1345    1344       1       1    1832 bash
   1820    1345       1       1    1832 bash
   1828    1820       1       1    1832 python2
   1829    1828       1       1    1832 time-helper
   1830    1829       1       1    1832 bash
   1831    1830    1831       1    1832 bash
   1832    1831    1832       1    1832 ps

run_snippet bash bgproc -
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   1835    1820       1       1       1 python2
   1836    1835       1       1       1 time-helper
   1837    1836       1       1       1 bash
   1838    1837       1       1       1 bash
   1839    1838       1       1       1 ps

run_snippet bash bgproc yes
[1] 1846
[1]+  Done                    ps -o $PS_COLS
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1845 sh
      8       1       1       1    1845 bash
     21       8       1       1    1845 bash
   1343      21       1       1    1845 python2
   1344    1343       1       1    1845 time-helper
   1345    1344       1       1    1845 bash
   1820    1345       1       1    1845 bash
   1842    1820       1       1    1845 python2
   1843    1842       1       1    1845 time-helper
   1844    1843       1       1    1845 bash
   1845    1844    1845       1    1845 bash
   1846    1845    1846       1    1845 ps

run_snippet bash fgpipe -
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   1849    1820       1       1       1 python2
   1850    1849       1       1       1 time-helper
   1851    1850       1       1       1 bash
   1852    1851       1       1       1 bash
   1853    1852       1       1       1 ps
   1854    1852       1       1       1 cat
   1855    1852       1       1       1 cat2

run_snippet bash fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1862 sh
      8       1       1       1    1862 bash
     21       8       1       1    1862 bash
   1343      21       1       1    1862 python2
   1344    1343       1       1    1862 time-helper
   1345    1344       1       1    1862 bash
   1820    1345       1       1    1862 bash
   1858    1820       1       1    1862 python2
   1859    1858       1       1    1862 time-helper
   1860    1859       1       1    1862 bash
   1861    1860    1861       1    1862 bash
   1862    1861    1862       1    1862 ps
   1863    1861    1862       1    1862 cat
   1864    1861    1862       1    1862 cat2

run_snippet bash fgpipe-lastpipe -
[foreground pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
8       1       1       1       1 bash
21       8       1       1       1 bash
1343      21       1       1       1 python2
1344    1343       1       1       1 time-helper
1345    1344       1       1       1 bash
1820    1345       1       1       1 bash
1867    1820       1       1       1 python2
1868    1867       1       1       1 time-helper
1869    1868       1       1       1 bash
1870    1869       1       1       1 bash
1871    1870       1       1       1 ps
1872    1870       1       1       1 cat2
1873    1870       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    1880 sh
8       1       1       1    1880 bash
21       8       1       1    1880 bash
1343      21       1       1    1880 python2
1344    1343       1       1    1880 time-helper
1345    1344       1       1    1880 bash
1820    1345       1       1    1880 bash
1876    1820       1       1    1880 python2
1877    1876       1       1    1880 time-helper
1878    1877       1       1    1880 bash
1879    1878    1879       1    1880 bash
1880    1879    1880       1    1880 ps
1881    1879    1880       1    1880 cat2
1882    1879    1880       1    1880 bash

run_snippet bash bgpipe -
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   1885    1820       1       1       1 python2
   1886    1885       1       1       1 time-helper
   1887    1886       1       1       1 bash
   1888    1887       1       1       1 bash
   1889    1888       1       1       1 ps
   1890    1888       1       1       1 cat
   1891    1888       1       1       1 cat2

run_snippet bash bgpipe yes
[1] 1900
[1]+  Done                    ps -o $PS_COLS | cat | _tmp/cat2
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1897 sh
      8       1       1       1    1897 bash
     21       8       1       1    1897 bash
   1343      21       1       1    1897 python2
   1344    1343       1       1    1897 time-helper
   1345    1344       1       1    1897 bash
   1820    1345       1       1    1897 bash
   1894    1820       1       1    1897 python2
   1895    1894       1       1    1897 time-helper
   1896    1895       1       1    1897 bash
   1897    1896    1897       1    1897 bash
   1898    1897    1898       1    1897 ps
   1899    1897    1898       1    1897 cat
   1900    1897    1898       1    1897 cat2

run_snippet bash bgpipe-lastpipe -
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
8       1       1       1       1 bash
21       8       1       1       1 bash
1343      21       1       1       1 python2
1344    1343       1       1       1 time-helper
1345    1344       1       1       1 bash
1820    1345       1       1       1 bash
1903    1820       1       1       1 python2
1904    1903       1       1       1 time-helper
1905    1904       1       1       1 bash
1906    1905       1       1       1 bash
1907    1906       1       1       1 ps
1908    1906       1       1       1 cat2
1909    1906       1       1       1 bash

run_snippet bash bgpipe-lastpipe yes
[1] 1918
[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    1915 sh
8       1       1       1    1915 bash
21       8       1       1    1915 bash
1343      21       1       1    1915 python2
1344    1343       1       1    1915 time-helper
1345    1344       1       1    1915 bash
1820    1345       1       1    1915 bash
1912    1820       1       1    1915 python2
1913    1912       1       1    1915 time-helper
1914    1913       1       1    1915 bash
1915    1914    1915       1    1915 bash
1916    1915    1916       1    1915 ps
1917    1915    1916       1    1915 cat2
1918    1915    1916       1    1915 bash

run_snippet bash subshell -
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   1921    1820       1       1       1 python2
   1922    1921       1       1       1 time-helper
   1923    1922       1       1       1 bash
   1924    1923       1       1       1 bash
   1925    1924       1       1       1 bash
   1926    1925       1       1       1 ps
ALIVE

run_snippet bash subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1933 sh
      8       1       1       1    1933 bash
     21       8       1       1    1933 bash
   1343      21       1       1    1933 python2
   1344    1343       1       1    1933 time-helper
   1345    1344       1       1    1933 bash
   1820    1345       1       1    1933 bash
   1929    1820       1       1    1933 python2
   1930    1929       1       1    1933 time-helper
   1931    1930       1       1    1933 bash
   1932    1931    1932       1    1933 bash
   1933    1932    1933       1    1933 bash
   1934    1933    1933       1    1933 ps
ALIVE

run_snippet bash csub -
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   1937    1820       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 ps

run_snippet bash csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1947 sh
      8       1       1       1    1947 bash
     21       8       1       1    1947 bash
   1343      21       1       1    1947 python2
   1344    1343       1       1    1947 time-helper
   1345    1344       1       1    1947 bash
   1820    1345       1       1    1947 bash
   1944    1820       1       1    1947 python2
   1945    1944       1       1    1947 time-helper
   1946    1945       1       1    1947 bash
   1947    1946    1947       1    1947 bash
   1948    1947    1947       1    1947 ps

run_snippet bash psub -
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   1951    1820       1       1       1 python2
   1952    1951       1       1       1 time-helper
   1953    1952       1       1       1 bash
   1954    1953       1       1       1 bash
   1955    1954       1       1       1 bash
   1956    1954       1       1       1 cat
   1957    1955       1       1       1 ps

run_snippet bash psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1965 sh
      8       1       1       1    1965 bash
     21       8       1       1    1965 bash
   1343      21       1       1    1965 python2
   1344    1343       1       1    1965 time-helper
   1345    1344       1       1    1965 bash
   1820    1345       1       1    1965 bash
   1960    1820       1       1    1965 python2
   1961    1960       1       1    1965 time-helper
   1962    1961       1       1    1965 bash
   1963    1962    1963       1    1965 bash
   1964    1963    1963       1    1965 bash
   1965    1963    1965       1    1965 cat
   1966    1964    1963       1    1965 ps

run_snippet dash fgproc -
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   1969    1820       1       1       1 python2
   1970    1969       1       1       1 time-helper
   1971    1970       1       1       1 bash
   1972    1971       1       1       1 dash
   1973    1972       1       1       1 ps

run_snippet dash fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1980 sh
      8       1       1       1    1980 bash
     21       8       1       1    1980 bash
   1343      21       1       1    1980 python2
   1344    1343       1       1    1980 time-helper
   1345    1344       1       1    1980 bash
   1820    1345       1       1    1980 bash
   1976    1820       1       1    1980 python2
   1977    1976       1       1    1980 time-helper
   1978    1977       1       1    1980 bash
   1979    1978    1979       1    1980 dash
   1980    1979    1980       1    1980 ps

run_snippet dash bgproc -
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   1983    1820       1       1       1 python2
   1984    1983       1       1       1 time-helper
   1985    1984       1       1       1 bash
   1986    1985       1       1       1 dash
   1987    1986       1       1       1 ps

run_snippet dash bgproc yes
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1993 sh
      8       1       1       1    1993 bash
     21       8       1       1    1993 bash
   1343      21       1       1    1993 python2
   1344    1343       1       1    1993 time-helper
   1345    1344       1       1    1993 bash
   1820    1345       1       1    1993 bash
   1990    1820       1       1    1993 python2
   1991    1990       1       1    1993 time-helper
   1992    1991       1       1    1993 bash
   1993    1992    1993       1    1993 dash
   1994    1993    1994       1    1993 ps

run_snippet dash fgpipe -
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   1997    1820       1       1       1 python2
   1998    1997       1       1       1 time-helper
   1999    1998       1       1       1 bash
   2000    1999       1       1       1 dash
   2001    2000       1       1       1 ps
   2002    2000       1       1       1 cat
   2003    2000       1       1       1 cat2

run_snippet dash fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2010 sh
      8       1       1       1    2010 bash
     21       8       1       1    2010 bash
   1343      21       1       1    2010 python2
   1344    1343       1       1    2010 time-helper
   1345    1344       1       1    2010 bash
   1820    1345       1       1    2010 bash
   2006    1820       1       1    2010 python2
   2007    2006       1       1    2010 time-helper
   2008    2007       1       1    2010 bash
   2009    2008    2009       1    2010 dash
   2010    2009    2010       1    2010 ps
   2011    2009    2010       1    2010 cat
   2012    2009    2010       1    2010 cat2

run_snippet dash fgpipe-lastpipe -
[foreground pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
8       1       1       1       1 bash
21       8       1       1       1 bash
1343      21       1       1       1 python2
1344    1343       1       1       1 time-helper
1345    1344       1       1       1 bash
1820    1345       1       1       1 bash
2015    1820       1       1       1 python2
2016    2015       1       1       1 time-helper
2017    2016       1       1       1 bash
2018    2017       1       1       1 dash
2019    2018       1       1       1 ps
2020    2018       1       1       1 cat2
2021    2018       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    2028 sh
8       1       1       1    2028 bash
21       8       1       1    2028 bash
1343      21       1       1    2028 python2
1344    1343       1       1    2028 time-helper
1345    1344       1       1    2028 bash
1820    1345       1       1    2028 bash
2024    1820       1       1    2028 python2
2025    2024       1       1    2028 time-helper
2026    2025       1       1    2028 bash
2027    2026    2027       1    2028 dash
2028    2027    2028       1    2028 ps
2029    2027    2028       1    2028 cat2
2030    2027    2028       1    2028 dash

run_snippet dash bgpipe -
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2033    1820       1       1       1 python2
   2034    2033       1       1       1 time-helper
   2035    2034       1       1       1 bash
   2036    2035       1       1       1 dash
   2037    2036       1       1       1 ps
   2038    2036       1       1       1 cat
   2039    2036       1       1       1 cat2

run_snippet dash bgpipe yes
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2045 sh
      8       1       1       1    2045 bash
     21       8       1       1    2045 bash
   1343      21       1       1    2045 python2
   1344    1343       1       1    2045 time-helper
   1345    1344       1       1    2045 bash
   1820    1345       1       1    2045 bash
   2042    1820       1       1    2045 python2
   2043    2042       1       1    2045 time-helper
   2044    2043       1       1    2045 bash
   2045    2044    2045       1    2045 dash
   2046    2045    2046       1    2045 ps
   2047    2045    2046       1    2045 cat
   2048    2045    2046       1    2045 cat2

run_snippet dash bgpipe-lastpipe -
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
8       1       1       1       1 bash
21       8       1       1       1 bash
1343      21       1       1       1 python2
1344    1343       1       1       1 time-helper
1345    1344       1       1       1 bash
1820    1345       1       1       1 bash
2051    1820       1       1       1 python2
2052    2051       1       1       1 time-helper
2053    2052       1       1       1 bash
2054    2053       1       1       1 dash
2055    2054       1       1       1 ps
2056    2054       1       1       1 cat2
2057    2054       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    2063 sh
8       1       1       1    2063 bash
21       8       1       1    2063 bash
1343      21       1       1    2063 python2
1344    1343       1       1    2063 time-helper
1345    1344       1       1    2063 bash
1820    1345       1       1    2063 bash
2060    1820       1       1    2063 python2
2061    2060       1       1    2063 time-helper
2062    2061       1       1    2063 bash
2063    2062    2063       1    2063 dash
2064    2063    2064       1    2063 ps
2065    2063    2064       1    2063 cat2
2066    2063    2064       1    2063 dash

run_snippet dash subshell -
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2069    1820       1       1       1 python2
   2070    2069       1       1       1 time-helper
   2071    2070       1       1       1 bash
   2072    2071       1       1       1 dash
   2073    2072       1       1       1 dash
   2074    2073       1       1       1 ps
ALIVE

run_snippet dash subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2081 sh
      8       1       1       1    2081 bash
     21       8       1       1    2081 bash
   1343      21       1       1    2081 python2
   1344    1343       1       1    2081 time-helper
   1345    1344       1       1    2081 bash
   1820    1345       1       1    2081 bash
   2077    1820       1       1    2081 python2
   2078    2077       1       1    2081 time-helper
   2079    2078       1       1    2081 bash
   2080    2079    2080       1    2081 dash
   2081    2080    2081       1    2081 dash
   2082    2081    2081       1    2081 ps
ALIVE

run_snippet dash csub -
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2085    1820       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 ps

run_snippet dash csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2095 sh
      8       1       1       1    2095 bash
     21       8       1       1    2095 bash
   1343      21       1       1    2095 python2
   1344    1343       1       1    2095 time-helper
   1345    1344       1       1    2095 bash
   1820    1345       1       1    2095 bash
   2092    1820       1       1    2095 python2
   2093    2092       1       1    2095 time-helper
   2094    2093       1       1    2095 bash
   2095    2094    2095       1    2095 dash
   2096    2095    2095       1    2095 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
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2111    1820       1       1       1 python2
   2112    2111       1       1       1 time-helper
   2113    2112       1       1       1 bash
   2114    2113       1       1       1 mksh
   2115    2114       1       1       1 ps

run_snippet mksh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2122 sh
      8       1       1       1    2122 bash
     21       8       1       1    2122 bash
   1343      21       1       1    2122 python2
   1344    1343       1       1    2122 time-helper
   1345    1344       1       1    2122 bash
   1820    1345       1       1    2122 bash
   2118    1820       1       1    2122 python2
   2119    2118       1       1    2122 time-helper
   2120    2119       1       1    2122 bash
   2121    2120    2121       1    2122 mksh
   2122    2121    2122       1    2122 ps

run_snippet mksh bgproc -
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2125    1820       1       1       1 python2
   2126    2125       1       1       1 time-helper
   2127    2126       1       1       1 bash
   2128    2127       1       1       1 mksh
   2129    2128       1       1       1 ps

run_snippet mksh bgproc yes
[1] 2136
[1] + Done                 \ps -o $PS_COLS 
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2135 sh
      8       1       1       1    2135 bash
     21       8       1       1    2135 bash
   1343      21       1       1    2135 python2
   1344    1343       1       1    2135 time-helper
   1345    1344       1       1    2135 bash
   1820    1345       1       1    2135 bash
   2132    1820       1       1    2135 python2
   2133    2132       1       1    2135 time-helper
   2134    2133       1       1    2135 bash
   2135    2134    2135       1    2135 mksh
   2136    2135    2136       1    2135 ps

run_snippet mksh fgpipe -
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2139    1820       1       1       1 python2
   2140    2139       1       1       1 time-helper
   2141    2140       1       1       1 bash
   2142    2141       1       1       1 mksh
   2143    2142       1       1       1 ps
   2144    2142       1       1       1 mksh
   2145    2142       1       1       1 cat2

run_snippet mksh fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2152 sh
      8       1       1       1    2152 bash
     21       8       1       1    2152 bash
   1343      21       1       1    2152 python2
   1344    1343       1       1    2152 time-helper
   1345    1344       1       1    2152 bash
   1820    1345       1       1    2152 bash
   2148    1820       1       1    2152 python2
   2149    2148       1       1    2152 time-helper
   2150    2149       1       1    2152 bash
   2151    2150    2151       1    2152 mksh
   2152    2151    2152       1    2152 ps
   2153    2151    2152       1    2152 mksh
   2154    2151    2152       1    2152 cat2

run_snippet mksh fgpipe-lastpipe -
[foreground pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
8       1       1       1       1 bash
21       8       1       1       1 bash
1343      21       1       1       1 python2
1344    1343       1       1       1 time-helper
1345    1344       1       1       1 bash
1820    1345       1       1       1 bash
2157    1820       1       1       1 python2
2158    2157       1       1       1 time-helper
2159    2158       1       1       1 bash
2160    2159       1       1       1 mksh
2161    2160       1       1       1 ps
2162    2160       1       1       1 cat2
2163    2160       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    2170 sh
8       1       1       1    2170 bash
21       8       1       1    2170 bash
1343      21       1       1    2170 python2
1344    1343       1       1    2170 time-helper
1345    1344       1       1    2170 bash
1820    1345       1       1    2170 bash
2166    1820       1       1    2170 python2
2167    2166       1       1    2170 time-helper
2168    2167       1       1    2170 bash
2169    2168    2169       1    2170 mksh
2170    2169    2170       1    2170 ps
2171    2169    2170       1    2170 cat2
2172    2169    2170       1    2170 mksh

run_snippet mksh bgpipe -
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2175    1820       1       1       1 python2
   2176    2175       1       1       1 time-helper
   2177    2176       1       1       1 bash
   2178    2177       1       1       1 mksh
   2179    2178       1       1       1 ps
   2180    2178       1       1       1 mksh
   2181    2178       1       1       1 cat2

run_snippet mksh bgpipe yes
[1] 2188 2189 2190
[1] + Done                 \ps -o $PS_COLS | \cat | _tmp/cat2 
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2187 sh
      8       1       1       1    2187 bash
     21       8       1       1    2187 bash
   1343      21       1       1    2187 python2
   1344    1343       1       1    2187 time-helper
   1345    1344       1       1    2187 bash
   1820    1345       1       1    2187 bash
   2184    1820       1       1    2187 python2
   2185    2184       1       1    2187 time-helper
   2186    2185       1       1    2187 bash
   2187    2186    2187       1    2187 mksh
   2188    2187    2188       1    2187 ps
   2189    2187    2188       1    2187 mksh
   2190    2187    2188       1    2187 cat2

run_snippet mksh bgpipe-lastpipe -
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
8       1       1       1       1 bash
21       8       1       1       1 bash
1343      21       1       1       1 python2
1344    1343       1       1       1 time-helper
1345    1344       1       1       1 bash
1820    1345       1       1       1 bash
2193    1820       1       1       1 python2
2194    2193       1       1       1 time-helper
2195    2194       1       1       1 bash
2196    2195       1       1       1 mksh
2197    2196       1       1       1 ps
2198    2196       1       1       1 cat2
2199    2196       1       1       1 mksh

run_snippet mksh bgpipe-lastpipe yes
[1] 2206 2207 2208
[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    2205 sh
8       1       1       1    2205 bash
21       8       1       1    2205 bash
1343      21       1       1    2205 python2
1344    1343       1       1    2205 time-helper
1345    1344       1       1    2205 bash
1820    1345       1       1    2205 bash
2202    1820       1       1    2205 python2
2203    2202       1       1    2205 time-helper
2204    2203       1       1    2205 bash
2205    2204    2205       1    2205 mksh
2206    2205    2206       1    2205 ps
2207    2205    2206       1    2205 cat2
2208    2205    2206       1    2205 mksh

run_snippet mksh subshell -
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2211    1820       1       1       1 python2
   2212    2211       1       1       1 time-helper
   2213    2212       1       1       1 bash
   2214    2213       1       1       1 mksh
   2215    2214       1       1       1 mksh
   2216    2215       1       1       1 ps
ALIVE

run_snippet mksh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2223 sh
      8       1       1       1    2223 bash
     21       8       1       1    2223 bash
   1343      21       1       1    2223 python2
   1344    1343       1       1    2223 time-helper
   1345    1344       1       1    2223 bash
   1820    1345       1       1    2223 bash
   2219    1820       1       1    2223 python2
   2220    2219       1       1    2223 time-helper
   2221    2220       1       1    2223 bash
   2222    2221    2222       1    2223 mksh
   2223    2222    2223       1    2223 mksh
   2224    2223    2223       1    2223 ps
ALIVE

run_snippet mksh csub -
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2227    1820       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 ps

run_snippet mksh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2237 sh
      8       1       1       1    2237 bash
     21       8       1       1    2237 bash
   1343      21       1       1    2237 python2
   1344    1343       1       1    2237 time-helper
   1345    1344       1       1    2237 bash
   1820    1345       1       1    2237 bash
   2234    1820       1       1    2237 python2
   2235    2234       1       1    2237 time-helper
   2236    2235       1       1    2237 bash
   2237    2236    2237       1    2237 mksh
   2238    2237    2237       1    2237 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
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2253    1820       1       1       1 python2
   2254    2253       1       1       1 time-helper
   2255    2254       1       1       1 bash
   2256    2255       1       1       1 zsh
   2257    2256       1       1       1 ps

run_snippet zsh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2265 sh
      8       1       1       1    2265 bash
     21       8       1       1    2265 bash
   1343      21       1       1    2265 python2
   1344    1343       1       1    2265 time-helper
   1345    1344       1       1    2265 bash
   1820    1345       1       1    2265 bash
   2260    1820       1       1    2265 python2
   2261    2260       1       1    2265 time-helper
   2262    2261       1       1    2265 bash
   2263    2262    2263       1    2265 zsh
   2265    2263    2265       1    2265 ps

run_snippet zsh bgproc -
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2268    1820       1       1       1 python2
   2269    2268       1       1       1 time-helper
   2270    2269       1       1       1 bash
   2271    2270       1       1       1 zsh
   2272    2271       1       1       1 ps

run_snippet zsh bgproc yes
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2278 sh
      8       1       1       1    2278 bash
     21       8       1       1    2278 bash
   1343      21       1       1    2278 python2
   1344    1343       1       1    2278 time-helper
   1345    1344       1       1    2278 bash
   1820    1345       1       1    2278 bash
   2275    1820       1       1    2278 python2
   2276    2275       1       1    2278 time-helper
   2277    2276       1       1    2278 bash
   2278    2277    2278       1    2278 zsh
   2280    2278    2280       1    2278 ps

run_snippet zsh fgpipe -
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2283    1820       1       1       1 python2
   2284    2283       1       1       1 time-helper
   2285    2284       1       1       1 bash
   2286    2285       1       1       1 zsh
   2287    2286       1       1       1 ps
   2288    2286       1       1       1 cat
   2289    2286       1       1       1 cat2

run_snippet zsh fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2297 sh
      8       1       1       1    2297 bash
     21       8       1       1    2297 bash
   1343      21       1       1    2297 python2
   1344    1343       1       1    2297 time-helper
   1345    1344       1       1    2297 bash
   1820    1345       1       1    2297 bash
   2292    1820       1       1    2297 python2
   2293    2292       1       1    2297 time-helper
   2294    2293       1       1    2297 bash
   2295    2294    2295       1    2297 zsh
   2297    2295    2297       1    2297 ps
   2298    2295    2297       1    2297 cat
   2299    2295    2297       1    2297 cat2

run_snippet zsh fgpipe-lastpipe -
[foreground pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
8       1       1       1       1 bash
21       8       1       1       1 bash
1343      21       1       1       1 python2
1344    1343       1       1       1 time-helper
1345    1344       1       1       1 bash
1820    1345       1       1       1 bash
2302    1820       1       1       1 python2
2303    2302       1       1       1 time-helper
2304    2303       1       1       1 bash
2305    2304       1       1       1 zsh
2306    2305       1       1       1 ps
2307    2305       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    2315 sh
8       1       1       1    2315 bash
21       8       1       1    2315 bash
1343      21       1       1    2315 python2
1344    1343       1       1    2315 time-helper
1345    1344       1       1    2315 bash
1820    1345       1       1    2315 bash
2310    1820       1       1    2315 python2
2311    2310       1       1    2315 time-helper
2312    2311       1       1    2315 bash
2313    2312    2313       1    2315 zsh
2315    2313    2315       1    2315 ps
2316    2313    2315       1    2315 cat2

run_snippet zsh bgpipe -
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2319    1820       1       1       1 python2
   2320    2319       1       1       1 time-helper
   2321    2320       1       1       1 bash
   2322    2321       1       1       1 zsh
   2323    2322       1       1       1 ps
   2324    2322       1       1       1 cat
   2325    2322       1       1       1 cat2

run_snippet zsh bgpipe yes
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2331 sh
      8       1       1       1    2331 bash
     21       8       1       1    2331 bash
   1343      21       1       1    2331 python2
   1344    1343       1       1    2331 time-helper
   1345    1344       1       1    2331 bash
   1820    1345       1       1    2331 bash
   2328    1820       1       1    2331 python2
   2329    2328       1       1    2331 time-helper
   2330    2329       1       1    2331 bash
   2331    2330    2331       1    2331 zsh
   2333    2331    2333       1    2331 ps
   2334    2331    2333       1    2331 cat
   2335    2331    2333       1    2331 cat2

run_snippet zsh bgpipe-lastpipe -
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
8       1       1       1       1 bash
21       8       1       1       1 bash
1343      21       1       1       1 python2
1344    1343       1       1       1 time-helper
1345    1344       1       1       1 bash
1820    1345       1       1       1 bash
2338    1820       1       1       1 python2
2339    2338       1       1       1 time-helper
2340    2339       1       1       1 bash
2341    2340       1       1       1 zsh
2342    2341       1       1       1 ps
2343    2341       1       1       1 cat2
2344    2341       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    2350 sh
8       1       1       1    2350 bash
21       8       1       1    2350 bash
1343      21       1       1    2350 python2
1344    1343       1       1    2350 time-helper
1345    1344       1       1    2350 bash
1820    1345       1       1    2350 bash
2347    1820       1       1    2350 python2
2348    2347       1       1    2350 time-helper
2349    2348       1       1    2350 bash
2350    2349    2350       1    2350 zsh
2352    2350    2352       1    2350 ps
2353    2350    2352       1    2350 cat2
2354    2350    2352       1    2350 zsh

run_snippet zsh subshell -
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2357    1820       1       1       1 python2
   2358    2357       1       1       1 time-helper
   2359    2358       1       1       1 bash
   2360    2359       1       1       1 zsh
   2361    2360       1       1       1 zsh
   2362    2361       1       1       1 ps
ALIVE

run_snippet zsh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2370 sh
      8       1       1       1    2370 bash
     21       8       1       1    2370 bash
   1343      21       1       1    2370 python2
   1344    1343       1       1    2370 time-helper
   1345    1344       1       1    2370 bash
   1820    1345       1       1    2370 bash
   2365    1820       1       1    2370 python2
   2366    2365       1       1    2370 time-helper
   2367    2366       1       1    2370 bash
   2368    2367    2368       1    2370 zsh
   2370    2368    2370       1    2370 zsh
   2371    2370    2370       1    2370 ps
ALIVE

run_snippet zsh csub -
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2374    1820       1       1       1 python2
   2375    2374       1       1       1 time-helper
   2376    2375       1       1       1 bash
   2377    2376       1       1       1 zsh
   2378    2377       1       1       1 ps

run_snippet zsh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2384 sh
      8       1       1       1    2384 bash
     21       8       1       1    2384 bash
   1343      21       1       1    2384 python2
   1344    1343       1       1    2384 time-helper
   1345    1344       1       1    2384 bash
   1820    1345       1       1    2384 bash
   2381    1820       1       1    2384 python2
   2382    2381       1       1    2384 time-helper
   2383    2382       1       1    2384 bash
   2384    2383    2384       1    2384 zsh
   2386    2384    2384       1    2384 ps

run_snippet zsh psub -
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2389    1820       1       1       1 python2
   2390    2389       1       1       1 time-helper
   2391    2390       1       1       1 bash
   2392    2391       1       1       1 zsh
   2393    2392       1       1       1 ps
   2394    2392       1       1       1 cat

run_snippet zsh psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2403 sh
      8       1       1       1    2403 bash
     21       8       1       1    2403 bash
   1343      21       1       1    2403 python2
   1344    1343       1       1    2403 time-helper
   1345    1344       1       1    2403 bash
   1820    1345       1       1    2403 bash
   2397    1820       1       1    2403 python2
   2398    2397       1       1    2403 time-helper
   2399    2398       1       1    2403 bash
   2400    2399    2400       1    2403 zsh
   2402    2400    2402       1    2403 ps
   2403    2400    2403       1    2403 cat

run_snippet bin/osh fgproc -
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2406    1820       1       1       1 python2
   2407    2406       1       1       1 time-helper
   2408    2407       1       1       1 bash
   2409    2408       1       1       1 python2
   2412    2409       1       1       1 ps

run_snippet bin/osh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2421 sh
      8       1       1       1    2421 bash
     21       8       1       1    2421 bash
   1343      21       1       1    2421 python2
   1344    1343       1       1    2421 time-helper
   1345    1344       1       1    2421 bash
   1820    1345       1       1    2421 bash
   2415    1820       1       1    2421 python2
   2416    2415       1       1    2421 time-helper
   2417    2416       1       1    2421 bash
   2418    2417    2418       1    2421 python2
   2421    2418    2421       1    2421 ps

run_snippet bin/osh bgproc -
[%1] PID 2430 Done
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2424    1820       1       1       1 python2
   2425    2424       1       1       1 time-helper
   2426    2425       1       1       1 bash
   2427    2426       1       1       1 python2
   2430    2427       1       1       1 ps

run_snippet bin/osh bgproc yes
[%1] PID 2439 Started
[%1] PID 2439 Done
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2436 sh
      8       1       1       1    2436 bash
     21       8       1       1    2436 bash
   1343      21       1       1    2436 python2
   1344    1343       1       1    2436 time-helper
   1345    1344       1       1    2436 bash
   1820    1345       1       1    2436 bash
   2433    1820       1       1    2436 python2
   2434    2433       1       1    2436 time-helper
   2435    2434       1       1    2436 bash
   2436    2435    2436       1    2436 python2
   2439    2436    2439       1    2436 ps

run_snippet bin/osh fgpipe -
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2442    1820       1       1       1 python2
   2443    2442       1       1       1 time-helper
   2444    2443       1       1       1 bash
   2445    2444       1       1       1 python2
   2448    2445       1       1       1 ps
   2449    2445       1       1       1 cat
   2450    2445       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    2459 sh
      8       1       1       1    2459 bash
     21       8       1       1    2459 bash
   1343      21       1       1    2459 python2
   1344    1343       1       1    2459 time-helper
   1345    1344       1       1    2459 bash
   1820    1345       1       1    2459 bash
   2453    1820       1       1    2459 python2
   2454    2453       1       1    2459 time-helper
   2455    2454       1       1    2459 bash
   2456    2455    2456       1    2459 python2
   2459    2456    2459       1    2459 ps
   2460    2456    2459       1    2459 cat
   2461    2456    2459       1    2459 cat2

run_snippet bin/osh fgpipe-lastpipe -
[foreground pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
8       1       1       1       1 bash
21       8       1       1       1 bash
1343      21       1       1       1 python2
1344    1343       1       1       1 time-helper
1345    1344       1       1       1 bash
1820    1345       1       1       1 bash
2464    1820       1       1       1 python2
2465    2464       1       1       1 time-helper
2466    2465       1       1       1 bash
2467    2466       1       1       1 python2
2470    2467       1       1       1 ps
2471    2467       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    2480 sh
8       1       1       1    2480 bash
21       8       1       1    2480 bash
1343      21       1       1    2480 python2
1344    1343       1       1    2480 time-helper
1345    1344       1       1    2480 bash
1820    1345       1       1    2480 bash
2474    1820       1       1    2480 python2
2475    2474       1       1    2480 time-helper
2476    2475       1       1    2480 bash
2477    2476    2477       1    2480 python2
2480    2477    2480       1    2480 ps
2481    2477    2480       1    2480 cat2

run_snippet bin/osh bgpipe -
[%1] PGID 2490 Done
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2484    1820       1       1       1 python2
   2485    2484       1       1       1 time-helper
   2486    2485       1       1       1 bash
   2487    2486       1       1       1 python2
   2490    2487       1       1       1 ps
   2491    2487       1       1       1 cat
   2492    2487       1       1       1 cat2

run_snippet bin/osh bgpipe yes
[%1] PID 2503 Started
[%1] PGID 2501 Done
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2498 sh
      8       1       1       1    2498 bash
     21       8       1       1    2498 bash
   1343      21       1       1    2498 python2
   1344    1343       1       1    2498 time-helper
   1345    1344       1       1    2498 bash
   1820    1345       1       1    2498 bash
   2495    1820       1       1    2498 python2
   2496    2495       1       1    2498 time-helper
   2497    2496       1       1    2498 bash
   2498    2497    2498       1    2498 python2
   2501    2498    2501       1    2498 ps
   2502    2498    2501       1    2498 cat
   2503    2498    2501       1    2498 cat2

run_snippet bin/osh bgpipe-lastpipe -
[%1] PGID 2512 Done
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
8       1       1       1       1 bash
21       8       1       1       1 bash
1343      21       1       1       1 python2
1344    1343       1       1       1 time-helper
1345    1344       1       1       1 bash
1820    1345       1       1       1 bash
2506    1820       1       1       1 python2
2507    2506       1       1       1 time-helper
2508    2507       1       1       1 bash
2509    2508       1       1       1 python2
2512    2509       1       1       1 ps
2513    2509       1       1       1 cat2
2514    2509       1       1       1 python2

run_snippet bin/osh bgpipe-lastpipe yes
[%1] PID 2525 Started
[%1] PGID 2523 Done
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    2520 sh
8       1       1       1    2520 bash
21       8       1       1    2520 bash
1343      21       1       1    2520 python2
1344    1343       1       1    2520 time-helper
1345    1344       1       1    2520 bash
1820    1345       1       1    2520 bash
2517    1820       1       1    2520 python2
2518    2517       1       1    2520 time-helper
2519    2518       1       1    2520 bash
2520    2519    2520       1    2520 python2
2523    2520    2523       1    2520 ps
2524    2520    2523       1    2520 cat2
2525    2520    2523       1    2520 python2

run_snippet bin/osh subshell -
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2528    1820       1       1       1 python2
   2529    2528       1       1       1 time-helper
   2530    2529       1       1       1 bash
   2531    2530       1       1       1 python2
   2534    2531       1       1       1 python2
   2535    2534       1       1       1 ps
ALIVE

run_snippet bin/osh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2544 sh
      8       1       1       1    2544 bash
     21       8       1       1    2544 bash
   1343      21       1       1    2544 python2
   1344    1343       1       1    2544 time-helper
   1345    1344       1       1    2544 bash
   1820    1345       1       1    2544 bash
   2538    1820       1       1    2544 python2
   2539    2538       1       1    2544 time-helper
   2540    2539       1       1    2544 bash
   2541    2540    2541       1    2544 python2
   2544    2541    2544       1    2544 python2
   2545    2544    2544       1    2544 ps
ALIVE

run_snippet bin/osh csub -
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2548    1820       1       1       1 python2
   2549    2548       1       1       1 time-helper
   2550    2549       1       1       1 bash
   2551    2550       1       1       1 python2
   2554    2551       1       1       1 ps

run_snippet bin/osh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2560 sh
      8       1       1       1    2560 bash
     21       8       1       1    2560 bash
   1343      21       1       1    2560 python2
   1344    1343       1       1    2560 time-helper
   1345    1344       1       1    2560 bash
   1820    1345       1       1    2560 bash
   2557    1820       1       1    2560 python2
   2558    2557       1       1    2560 time-helper
   2559    2558       1       1    2560 bash
   2560    2559    2560       1    2560 python2
   2563    2560    2560       1    2560 ps

run_snippet bin/osh psub -
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2566    1820       1       1       1 python2
   2567    2566       1       1       1 time-helper
   2568    2567       1       1       1 bash
   2569    2568       1       1       1 python2
   2572    2569       1       1       1 ps
   2573    2569       1       1       1 cat

run_snippet bin/osh psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2583 sh
      8       1       1       1    2583 bash
     21       8       1       1    2583 bash
   1343      21       1       1    2583 python2
   1344    1343       1       1    2583 time-helper
   1345    1344       1       1    2583 bash
   1820    1345       1       1    2583 bash
   2576    1820       1       1    2583 python2
   2577    2576       1       1    2583 time-helper
   2578    2577       1       1    2583 bash
   2579    2578    2579       1    2583 python2
   2582    2579    2582       1    2583 ps
   2583    2579    2583       1    2583 cat

run_snippet _bin/cxx-dbg/osh fgproc -
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2586    1820       1       1       1 python2
   2587    2586       1       1       1 time-helper
   2588    2587       1       1       1 bash
   2589    2588       1       1       1 osh
   2590    2589       1       1       1 ps

run_snippet _bin/cxx-dbg/osh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2597 sh
      8       1       1       1    2597 bash
     21       8       1       1    2597 bash
   1343      21       1       1    2597 python2
   1344    1343       1       1    2597 time-helper
   1345    1344       1       1    2597 bash
   1820    1345       1       1    2597 bash
   2593    1820       1       1    2597 python2
   2594    2593       1       1    2597 time-helper
   2595    2594       1       1    2597 bash
   2596    2595    2596       1    2597 osh
   2597    2596    2597       1    2597 ps

run_snippet _bin/cxx-dbg/osh bgproc -
[%1] PID 2604 Done
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2600    1820       1       1       1 python2
   2601    2600       1       1       1 time-helper
   2602    2601       1       1       1 bash
   2603    2602       1       1       1 osh
   2604    2603       1       1       1 ps

run_snippet _bin/cxx-dbg/osh bgproc yes
[%1] PID 2611 Started
[%1] PID 2611 Done
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2610 sh
      8       1       1       1    2610 bash
     21       8       1       1    2610 bash
   1343      21       1       1    2610 python2
   1344    1343       1       1    2610 time-helper
   1345    1344       1       1    2610 bash
   1820    1345       1       1    2610 bash
   2607    1820       1       1    2610 python2
   2608    2607       1       1    2610 time-helper
   2609    2608       1       1    2610 bash
   2610    2609    2610       1    2610 osh
   2611    2610    2611       1    2610 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
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2614    1820       1       1       1 python2
   2615    2614       1       1       1 time-helper
   2616    2615       1       1       1 bash
   2617    2616       1       1       1 osh
   2618    2617       1       1       1 ps
   2619    2617       1       1       1 cat
   2620    2617       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    2627 sh
      8       1       1       1    2627 bash
     21       8       1       1    2627 bash
   1343      21       1       1    2627 python2
   1344    1343       1       1    2627 time-helper
   1345    1344       1       1    2627 bash
   1820    1345       1       1    2627 bash
   2623    1820       1       1    2627 python2
   2624    2623       1       1    2627 time-helper
   2625    2624       1       1    2627 bash
   2626    2625    2626       1    2627 osh
   2627    2626    2627       1    2627 ps
   2628    2626    2627       1    2627 cat
   2629    2626    2627       1    2627 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
8       1       1       1       1 bash
21       8       1       1       1 bash
1343      21       1       1       1 python2
1344    1343       1       1       1 time-helper
1345    1344       1       1       1 bash
1820    1345       1       1       1 bash
2632    1820       1       1       1 python2
2633    2632       1       1       1 time-helper
2634    2633       1       1       1 bash
2635    2634       1       1       1 osh
2636    2635       1       1       1 ps
2637    2635       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    2644 sh
8       1       1       1    2644 bash
21       8       1       1    2644 bash
1343      21       1       1    2644 python2
1344    1343       1       1    2644 time-helper
1345    1344       1       1    2644 bash
1820    1345       1       1    2644 bash
2640    1820       1       1    2644 python2
2641    2640       1       1    2644 time-helper
2642    2641       1       1    2644 bash
2643    2642    2643       1    2644 osh
2644    2643    2644       1    2644 ps
2645    2643    2644       1    2644 cat2

run_snippet _bin/cxx-dbg/osh bgpipe -
[%1] PGID 2652 Done
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2648    1820       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 cat
   2654    2651       1       1       1 cat2

run_snippet _bin/cxx-dbg/osh bgpipe yes
[%1] PID 2663 Started
[%1] PGID 2661 Done
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2660 sh
      8       1       1       1    2660 bash
     21       8       1       1    2660 bash
   1343      21       1       1    2660 python2
   1344    1343       1       1    2660 time-helper
   1345    1344       1       1    2660 bash
   1820    1345       1       1    2660 bash
   2657    1820       1       1    2660 python2
   2658    2657       1       1    2660 time-helper
   2659    2658       1       1    2660 bash
   2660    2659    2660       1    2660 osh
   2661    2660    2661       1    2660 ps
   2662    2660    2661       1    2660 cat
   2663    2660    2661       1    2660 cat2

run_snippet _bin/cxx-dbg/osh bgpipe-lastpipe -
[%1] PGID 2670 Done
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1       1 sh
8       1       1       1       1 bash
21       8       1       1       1 bash
1343      21       1       1       1 python2
1344    1343       1       1       1 time-helper
1345    1344       1       1       1 bash
1820    1345       1       1       1 bash
2666    1820       1       1       1 python2
2667    2666       1       1       1 time-helper
2668    2667       1       1       1 bash
2669    2668       1       1       1 osh
2670    2669       1       1       1 ps
2671    2669       1       1       1 cat2
2672    2669       1       1       1 osh

run_snippet _bin/cxx-dbg/osh bgpipe-lastpipe yes
[%1] PID 2681 Started
[%1] PGID 2679 Done
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    2678 sh
8       1       1       1    2678 bash
21       8       1       1    2678 bash
1343      21       1       1    2678 python2
1344    1343       1       1    2678 time-helper
1345    1344       1       1    2678 bash
1820    1345       1       1    2678 bash
2675    1820       1       1    2678 python2
2676    2675       1       1    2678 time-helper
2677    2676       1       1    2678 bash
2678    2677    2678       1    2678 osh
2679    2678    2679       1    2678 ps
2680    2678    2679       1    2678 cat2
2681    2678    2679       1    2678 osh

run_snippet _bin/cxx-dbg/osh subshell -
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2684    1820       1       1       1 python2
   2685    2684       1       1       1 time-helper
   2686    2685       1       1       1 bash
   2687    2686       1       1       1 osh
   2688    2687       1       1       1 osh
   2689    2688       1       1       1 ps
ALIVE

run_snippet _bin/cxx-dbg/osh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2696 sh
      8       1       1       1    2696 bash
     21       8       1       1    2696 bash
   1343      21       1       1    2696 python2
   1344    1343       1       1    2696 time-helper
   1345    1344       1       1    2696 bash
   1820    1345       1       1    2696 bash
   2692    1820       1       1    2696 python2
   2693    2692       1       1    2696 time-helper
   2694    2693       1       1    2696 bash
   2695    2694    2695       1    2696 osh
   2696    2695    2696       1    2696 osh
   2697    2696    2696       1    2696 ps
ALIVE

run_snippet _bin/cxx-dbg/osh csub -
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2700    1820       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 ps

run_snippet _bin/cxx-dbg/osh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2710 sh
      8       1       1       1    2710 bash
     21       8       1       1    2710 bash
   1343      21       1       1    2710 python2
   1344    1343       1       1    2710 time-helper
   1345    1344       1       1    2710 bash
   1820    1345       1       1    2710 bash
   2707    1820       1       1    2710 python2
   2708    2707       1       1    2710 time-helper
   2709    2708       1       1    2710 bash
   2710    2709    2710       1    2710 osh
   2711    2710    2710       1    2710 ps

run_snippet _bin/cxx-dbg/osh psub -
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      8       1       1       1       1 bash
     21       8       1       1       1 bash
   1343      21       1       1       1 python2
   1344    1343       1       1       1 time-helper
   1345    1344       1       1       1 bash
   1820    1345       1       1       1 bash
   2714    1820       1       1       1 python2
   2715    2714       1       1       1 time-helper
   2716    2715       1       1       1 bash
   2717    2716       1       1       1 osh
   2718    2717       1       1       1 ps
   2719    2717       1       1       1 cat

run_snippet _bin/cxx-dbg/osh psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2727 sh
      8       1       1       1    2727 bash
     21       8       1       1    2727 bash
   1343      21       1       1    2727 python2
   1344    1343       1       1    2727 time-helper
   1345    1344       1       1    2727 bash
   1820    1345       1       1    2727 bash
   2722    1820       1       1    2727 python2
   2723    2722       1       1    2727 time-helper
   2724    2723       1       1    2727 bash
   2725    2724    2725       1    2727 osh
   2726    2725    2726       1    2727 ps
   2727    2725    2727       1    2727 cat

Wrote _tmp/process-table/index.html