'_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/optview_gen core/optview_gen.py frontend/option_def.py
[3/66] make-pystub _bin/shwrap/embedded_file_gen cpp/embedded_file_gen.py mycpp/mylib.py pylib/collections_.py
[4/66] make-pystub _bin/shwrap/asdl_main asdl/asdl_main.py asdl/ast.py asdl/front_end.py asdl/gen_cpp.py asdl/gen_python.py asdl/util.py asdl/visitor.py
[5/66] make-pystub _bin/shwrap/consts_gen frontend/consts_gen.py _devbuild/gen/hnode_asdl.py _devbuild/gen/types_asdl.py asdl/ast.py asdl/gen_cpp.py asdl/pybase.py asdl/runtime.py asdl/util.py asdl/visitor.py frontend/builtin_def.py frontend/id_kind_def.py frontend/option_def.py mycpp/mops.py mycpp/mylib.py pylib/collections_.py
[6/66] make-pystub _bin/shwrap/flag_gen frontend/flag_gen.py _devbuild/gen/hnode_asdl.py _devbuild/gen/id_kind_asdl.py _devbuild/gen/runtime_asdl.py _devbuild/gen/syntax_asdl.py _devbuild/gen/value_asdl.py asdl/pybase.py asdl/runtime.py core/error.py core/num.py frontend/args.py frontend/flag_def.py frontend/flag_spec.py frontend/option_def.py frontend/syntax_abbrev.py mycpp/mops.py mycpp/mylib.py pylib/collections_.py
[7/66] make-pystub _bin/shwrap/option_gen frontend/option_gen.py asdl/ast.py frontend/builtin_def.py frontend/option_def.py
[8/66] 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
[9/66] asdl_main cpp  core/value.asdl _gen/core/value.asdl _gen/core/value.asdl_debug.py
[10/66] optview_gen > _gen/core/optview.h
[11/66] make-pystub _bin/shwrap/signal_gen frontend/signal_gen.py frontend/signal_def.py
[12/66] asdl_main cpp  data_lang/nil8.asdl _gen/data_lang/nil8.asdl _gen/data_lang/nil8.asdl_debug.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  display/pretty.asdl _gen/display/pretty.asdl _gen/display/pretty.asdl_debug.py
[15/66] asdl_main cpp  core/runtime.asdl _gen/core/runtime.asdl _gen/core/runtime.asdl_debug.py
[16/66] consts_gen cpp _gen/frontend/id_kind.asdl
[17/66] consts_gen cpp _gen/frontend/option.asdl
[18/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
[19/66] signal_gen cpp _gen/frontend/signal
[20/66] asdl_main cpp --no-pretty-print-methods frontend/types.asdl _gen/frontend/types.asdl _gen/frontend/types.asdl_debug.py
[21/66] consts_gen cpp-consts _gen/frontend/consts
[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] 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
[24/66] flag_gen cpp _gen/frontend/arg_types
[25/66] asdl_main cpp --abbrev-module=frontend.syntax_abbrev frontend/syntax.asdl _gen/frontend/syntax.asdl _gen/frontend/syntax.asdl_debug.py
[26/66] arith-parse-gen > _gen/osh/arith_parse.cc
[27/66] grammar_gen cpp ysh/grammar.pgen2 _gen/ysh
[28/66] cxx dbg '' _gen/frontend/id_kind.asdl.cc _build/obj/cxx-dbg/_gen/frontend/id_kind.asdl.o
[29/66] cxx dbg '' _gen/display/pretty.asdl.cc _build/obj/cxx-dbg/_gen/display/pretty.asdl.o
[30/66] cxx dbg '' mycpp/bump_leak_heap.cc _build/obj/cxx-dbg/mycpp/bump_leak_heap.o
[31/66] cxx dbg '' cpp/data_lang.cc _build/obj/cxx-dbg/cpp/data_lang.o
[32/66] cxx dbg '' mycpp/gc_builtins.cc _build/obj/cxx-dbg/mycpp/gc_builtins.o
[33/66] cxx dbg '' _gen/core/runtime.asdl.cc _build/obj/cxx-dbg/_gen/core/runtime.asdl.o
[34/66] cxx dbg '' mycpp/gc_iolib.cc _build/obj/cxx-dbg/mycpp/gc_iolib.o
[35/66] cxx dbg '' mycpp/gc_mops.cc _build/obj/cxx-dbg/mycpp/gc_mops.o
[36/66] cxx dbg '' _gen/core/value.asdl.cc _build/obj/cxx-dbg/_gen/core/value.asdl.o
[37/66] cxx dbg '' mycpp/hash.cc _build/obj/cxx-dbg/mycpp/hash.o
[38/66] cxx dbg '' _gen/bin/text_files.cc _build/obj/cxx-dbg/_gen/bin/text_files.o
[39/66] cxx dbg '' _gen/cpp/build_stamp.cc _build/obj/cxx-dbg/_gen/cpp/build_stamp.o
[40/66] cxx dbg '' mycpp/gc_mylib.cc _build/obj/cxx-dbg/mycpp/gc_mylib.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_shared.c _build/obj/cxx-dbg/cpp/fanos_shared.o
[43/66] cxx dbg '' _gen/frontend/syntax.asdl.cc _build/obj/cxx-dbg/_gen/frontend/syntax.asdl.o
[44/66] cxx dbg '' cpp/fanos.cc _build/obj/cxx-dbg/cpp/fanos.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/libc.cc _build/obj/cxx-dbg/cpp/libc.o
[48/66] cxx dbg '' cpp/frontend_pyreadline.cc _build/obj/cxx-dbg/cpp/frontend_pyreadline.o
[49/66] cxx dbg '' cpp/frontend_match.cc _build/obj/cxx-dbg/cpp/frontend_match.o
[50/66] cxx dbg '' cpp/osh.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/osh_tdop.cc _build/obj/cxx-dbg/cpp/osh_tdop.o
[53/66] cxx dbg '' cpp/pgen2.cc _build/obj/cxx-dbg/cpp/pgen2.o
[54/66] cxx dbg '' _gen/data_lang/nil8.asdl.cc _build/obj/cxx-dbg/_gen/data_lang/nil8.asdl.o
[55/66] cxx dbg '' cpp/stdlib.cc _build/obj/cxx-dbg/cpp/stdlib.o
[56/66] cxx dbg '' _gen/frontend/arg_types.cc _build/obj/cxx-dbg/_gen/frontend/arg_types.o
[57/66] cxx dbg '' _gen/frontend/signal.cc _build/obj/cxx-dbg/_gen/frontend/signal.o
[58/66] cxx dbg '' _gen/frontend/consts.cc _build/obj/cxx-dbg/_gen/frontend/consts.o
[59/66] cxx dbg '' _gen/frontend/help_meta.cc _build/obj/cxx-dbg/_gen/frontend/help_meta.o
[60/66] cxx dbg '' _gen/osh/arith_parse.cc _build/obj/cxx-dbg/_gen/osh/arith_parse.o
[61/66] cxx dbg '' mycpp/gc_str.cc _build/obj/cxx-dbg/mycpp/gc_str.o
[62/66] cxx dbg '' _gen/ysh/grammar_tables.cc _build/obj/cxx-dbg/_gen/ysh/grammar_tables.o
[63/66] gen-oils-for-unix oils_for_unix  _gen/bin/oils_for_unix.mycpp cpp/preamble.h asdl/format.py asdl/runtime.py bin/oils_for_unix.py builtin/assign_osh.py builtin/bracket_osh.py builtin/completion_osh.py builtin/completion_ysh.py builtin/dirs_osh.py builtin/error_ysh.py builtin/func_eggex.py builtin/func_hay.py builtin/func_misc.py builtin/func_reflect.py builtin/hay_ysh.py builtin/io_osh.py builtin/io_ysh.py builtin/json_ysh.py builtin/meta_oils.py builtin/method_dict.py builtin/method_io.py builtin/method_list.py builtin/method_other.py builtin/method_str.py builtin/method_type.py builtin/misc_osh.py builtin/module_ysh.py builtin/printf_osh.py builtin/process_osh.py builtin/pure_osh.py builtin/pure_ysh.py builtin/read_osh.py builtin/readline_osh.py builtin/trap_osh.py core/alloc.py core/bash_impl.py core/comp_ui.py core/completion.py core/dev.py core/error.py core/executor.py core/main_loop.py core/num.py core/process.py core/sh_init.py core/shell.py core/state.py core/util.py core/vm.py data_lang/j8.py data_lang/j8_lite.py display/ansi.py display/pp_hnode.py display/pp_value.py display/pretty.py display/ui.py frontend/args.py frontend/flag_util.py frontend/lexer.py frontend/location.py frontend/parse_lib.py frontend/reader.py frontend/syntax_abbrev.py frontend/typed_args.py osh/arith_parse.py osh/bool_parse.py osh/braces.py osh/cmd_eval.py osh/cmd_parse.py osh/glob_.py osh/history.py osh/prompt.py osh/sh_expr_eval.py osh/split.py osh/string_ops.py osh/tdop.py osh/word_.py osh/word_compile.py osh/word_eval.py osh/word_parse.py pgen2/parse.py pylib/os_path.py tools/fmt.py tools/ysh_ify.py ysh/expr_eval.py ysh/expr_parse.py ysh/expr_to_ast.py ysh/func_proc.py ysh/regex_translate.py ysh/val_ops.py
	mycpp: LOADING asdl/format.py asdl/runtime.py bin/oils_for_unix.py builtin/assign_osh.py builtin/bracket_osh.py builtin/completion_osh.py builtin/completion_ysh.py builtin/dirs_osh.py builtin/error_ysh.py builtin/func_eggex.py builtin/func_hay.py builtin/func_misc.py builtin/func_reflect.py builtin/hay_ysh.py builtin/io_osh.py builtin/io_ysh.py builtin/json_ysh.py builtin/meta_oils.py builtin/method_dict.py builtin/method_io.py builtin/method_list.py builtin/method_other.py builtin/method_str.py builtin/method_type.py builtin/misc_osh.py builtin/module_ysh.py builtin/printf_osh.py builtin/process_osh.py builtin/pure_osh.py builtin/pure_ysh.py builtin/read_osh.py builtin/readline_osh.py builtin/trap_osh.py core/alloc.py core/bash_impl.py core/comp_ui.py core/completion.py core/dev.py core/error.py core/executor.py core/main_loop.py core/num.py core/process.py core/sh_init.py core/shell.py core/state.py core/util.py core/vm.py data_lang/j8.py data_lang/j8_lite.py display/ansi.py display/pp_hnode.py display/pp_value.py display/pretty.py display/ui.py frontend/args.py frontend/flag_util.py frontend/lexer.py frontend/location.py frontend/parse_lib.py frontend/reader.py frontend/syntax_abbrev.py frontend/typed_args.py osh/arith_parse.py osh/bool_parse.py osh/braces.py osh/cmd_eval.py osh/cmd_parse.py osh/glob_.py osh/history.py osh/prompt.py osh/sh_expr_eval.py osh/split.py osh/string_ops.py osh/tdop.py osh/word_.py osh/word_compile.py osh/word_eval.py osh/word_parse.py pgen2/parse.py pylib/os_path.py tools/fmt.py tools/ysh_ify.py ysh/expr_eval.py ysh/expr_parse.py ysh/expr_to_ast.py ysh/func_proc.py ysh/regex_translate.py ysh/val_ops.py
	mycpp pass: CONVERT
	mycpp pass: CONTROL FLOW
	mycpp: dumping control flow graph to _tmp/mycpp-facts
	mycpp pass: CONST
	mycpp pass: DECL
	mycpp pass: IMPL
WARNING: builtin.assign_osh._PrintVariables() has 26 stack roots. Consider refactoring this function.
WARNING: builtin.hay_ysh.HayNode_.Run() has 18 stack roots. Consider refactoring this function.
WARNING: builtin.io_ysh.Pp.Run() has 22 stack roots. Consider refactoring this function.
WARNING: builtin.meta_oils.ShellFile._Use() has 19 stack roots. Consider refactoring this function.
WARNING: builtin.method_str.Replace.Call() has 26 stack roots. Consider refactoring this function.
WARNING: builtin.printf_osh.Printf._Percent() has 21 stack roots. Consider refactoring this function.
WARNING: builtin.printf_osh.Printf.Run() has 17 stack roots. Consider refactoring this function.
WARNING: core.completion.RootCompleter.Matches() has 31 stack roots. Consider refactoring this function.
WARNING: osh.cmd_parse.CommandParser._MaybeExpandAliases() has 17 stack roots. Consider refactoring this function.
WARNING: osh.history.Evaluator.Eval() has 19 stack roots. Consider refactoring this function.
WARNING: osh.word_eval.AbstractWordEvaluator._ApplyTestOp() has 19 stack roots. Consider refactoring this function.
WARNING: tools.ysh_ify.YshPrinter.DoCommand() has 18 stack roots. Consider refactoring this function.
WARNING: ysh.expr_eval.ExprEvaluator._EvalExpr() has 17 stack roots. Consider refactoring this function.
WARNING: ysh.expr_parse._PushYshTokens() has 27 stack roots. Consider refactoring this function.
WARNING: ysh.expr_to_ast.Transformer.Expr() has 18 stack roots. Consider refactoring this function.
WARNING: builtin.completion_osh.SpecBuilder.Build() has 18 stack roots. Consider refactoring this function.
WARNING: core.shell.Main() has 124 stack roots. Consider refactoring this function.
	mycpp DONE
[64/66] cxx dbg '' _gen/bin/oils_for_unix.mycpp.cc _build/obj/cxx-dbg/_gen/bin/oils_for_unix.mycpp.o
build/ninja-rules-cpp.sh: line 341: time: command not found
[65/66] LINK cxx dbg '' _bin/cxx-dbg/oils-for-unix _build/obj/cxx-dbg/_gen/bin/oils_for_unix.mycpp.o _build/obj/cxx-dbg/_gen/bin/text_files.o _build/obj/cxx-dbg/_gen/core/runtime.asdl.o _build/obj/cxx-dbg/_gen/core/value.asdl.o _build/obj/cxx-dbg/_gen/cpp/build_stamp.o _build/obj/cxx-dbg/cpp/core.o _build/obj/cxx-dbg/cpp/data_lang.o _build/obj/cxx-dbg/cpp/fanos.o _build/obj/cxx-dbg/cpp/fanos_shared.o _build/obj/cxx-dbg/cpp/frontend_flag_spec.o _build/obj/cxx-dbg/cpp/frontend_match.o _build/obj/cxx-dbg/cpp/frontend_pyreadline.o _build/obj/cxx-dbg/cpp/libc.o _build/obj/cxx-dbg/cpp/osh.o _build/obj/cxx-dbg/cpp/osh_tdop.o _build/obj/cxx-dbg/cpp/pgen2.o _build/obj/cxx-dbg/cpp/pylib.o _build/obj/cxx-dbg/cpp/stdlib.o _build/obj/cxx-dbg/_gen/data_lang/nil8.asdl.o _build/obj/cxx-dbg/_gen/display/pretty.asdl.o _build/obj/cxx-dbg/_gen/frontend/arg_types.o _build/obj/cxx-dbg/_gen/frontend/consts.o _build/obj/cxx-dbg/_gen/frontend/help_meta.o _build/obj/cxx-dbg/_gen/frontend/id_kind.asdl.o _build/obj/cxx-dbg/_gen/frontend/signal.o _build/obj/cxx-dbg/_gen/frontend/syntax.asdl.o _build/obj/cxx-dbg/mycpp/bump_leak_heap.o _build/obj/cxx-dbg/mycpp/gc_builtins.o _build/obj/cxx-dbg/mycpp/gc_iolib.o _build/obj/cxx-dbg/mycpp/gc_mops.o _build/obj/cxx-dbg/mycpp/gc_mylib.o _build/obj/cxx-dbg/mycpp/gc_str.o _build/obj/cxx-dbg/mycpp/hash.o _build/obj/cxx-dbg/mycpp/mark_sweep_heap.o _build/obj/cxx-dbg/_gen/osh/arith_parse.o _build/obj/cxx-dbg/_gen/ysh/grammar_tables.o
[66/66] SYMLINK _bin/cxx-dbg oils-for-unix osh
'osh' -> 'oils-for-unix'
run_snippet bash fgproc -
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1       1 sh
      7       1       1       1       1 bash
     20       7       1       1       1 bash
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   1820    1819       1       1       1 python2
   1821    1820       1       1       1 time-helper
   1822    1821       1       1       1 bash
   1823    1822       1       1       1 bash
   1824    1823       1       1       1 ps

run_snippet bash fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1831 sh
      7       1       1       1    1831 bash
     20       7       1       1    1831 bash
   1342      20       1       1    1831 python2
   1343    1342       1       1    1831 time-helper
   1344    1343       1       1    1831 bash
   1819    1344       1       1    1831 bash
   1827    1819       1       1    1831 python2
   1828    1827       1       1    1831 time-helper
   1829    1828       1       1    1831 bash
   1830    1829    1830       1    1831 bash
   1831    1830    1831       1    1831 ps

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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   1834    1819       1       1       1 python2
   1835    1834       1       1       1 time-helper
   1836    1835       1       1       1 bash
   1837    1836       1       1       1 bash
   1838    1837       1       1       1 ps

run_snippet bash bgproc yes
[1] 1845
[1]+  Done                    ps -o $PS_COLS
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1844 sh
      7       1       1       1    1844 bash
     20       7       1       1    1844 bash
   1342      20       1       1    1844 python2
   1343    1342       1       1    1844 time-helper
   1344    1343       1       1    1844 bash
   1819    1344       1       1    1844 bash
   1841    1819       1       1    1844 python2
   1842    1841       1       1    1844 time-helper
   1843    1842       1       1    1844 bash
   1844    1843    1844       1    1844 bash
   1845    1844    1845       1    1844 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   1848    1819       1       1       1 python2
   1849    1848       1       1       1 time-helper
   1850    1849       1       1       1 bash
   1851    1850       1       1       1 bash
   1852    1851       1       1       1 ps
   1853    1851       1       1       1 cat
   1854    1851       1       1       1 cat2

run_snippet bash fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1861 sh
      7       1       1       1    1861 bash
     20       7       1       1    1861 bash
   1342      20       1       1    1861 python2
   1343    1342       1       1    1861 time-helper
   1344    1343       1       1    1861 bash
   1819    1344       1       1    1861 bash
   1857    1819       1       1    1861 python2
   1858    1857       1       1    1861 time-helper
   1859    1858       1       1    1861 bash
   1860    1859    1860       1    1861 bash
   1861    1860    1861       1    1861 ps
   1862    1860    1861       1    1861 cat
   1863    1860    1861       1    1861 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
1342      20       1       1       1 python2
1343    1342       1       1       1 time-helper
1344    1343       1       1       1 bash
1819    1344       1       1       1 bash
1866    1819       1       1       1 python2
1867    1866       1       1       1 time-helper
1868    1867       1       1       1 bash
1869    1868       1       1       1 bash
1870    1869       1       1       1 ps
1871    1869       1       1       1 cat2
1872    1869       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    1879 sh
7       1       1       1    1879 bash
20       7       1       1    1879 bash
1342      20       1       1    1879 python2
1343    1342       1       1    1879 time-helper
1344    1343       1       1    1879 bash
1819    1344       1       1    1879 bash
1875    1819       1       1    1879 python2
1876    1875       1       1    1879 time-helper
1877    1876       1       1    1879 bash
1878    1877    1878       1    1879 bash
1879    1878    1879       1    1879 ps
1880    1878    1879       1    1879 cat2
1881    1878    1879       1    1879 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   1884    1819       1       1       1 python2
   1885    1884       1       1       1 time-helper
   1886    1885       1       1       1 bash
   1887    1886       1       1       1 bash
   1888    1887       1       1       1 ps
   1889    1887       1       1       1 cat
   1890    1887       1       1       1 cat2

run_snippet bash bgpipe yes
[1] 1899
[1]+  Done                    ps -o $PS_COLS | cat | _tmp/cat2
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1896 sh
      7       1       1       1    1896 bash
     20       7       1       1    1896 bash
   1342      20       1       1    1896 python2
   1343    1342       1       1    1896 time-helper
   1344    1343       1       1    1896 bash
   1819    1344       1       1    1896 bash
   1893    1819       1       1    1896 python2
   1894    1893       1       1    1896 time-helper
   1895    1894       1       1    1896 bash
   1896    1895    1896       1    1896 bash
   1897    1896    1897       1    1896 ps
   1898    1896    1897       1    1896 cat
   1899    1896    1897       1    1896 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
1342      20       1       1       1 python2
1343    1342       1       1       1 time-helper
1344    1343       1       1       1 bash
1819    1344       1       1       1 bash
1902    1819       1       1       1 python2
1903    1902       1       1       1 time-helper
1904    1903       1       1       1 bash
1905    1904       1       1       1 bash
1906    1905       1       1       1 ps
1907    1905       1       1       1 cat2
1908    1905       1       1       1 bash

run_snippet bash bgpipe-lastpipe yes
[1] 1917
[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    1914 sh
7       1       1       1    1914 bash
20       7       1       1    1914 bash
1342      20       1       1    1914 python2
1343    1342       1       1    1914 time-helper
1344    1343       1       1    1914 bash
1819    1344       1       1    1914 bash
1911    1819       1       1    1914 python2
1912    1911       1       1    1914 time-helper
1913    1912       1       1    1914 bash
1914    1913    1914       1    1914 bash
1915    1914    1915       1    1914 ps
1916    1914    1915       1    1914 cat2
1917    1914    1915       1    1914 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   1920    1819       1       1       1 python2
   1921    1920       1       1       1 time-helper
   1922    1921       1       1       1 bash
   1923    1922       1       1       1 bash
   1924    1923       1       1       1 bash
   1925    1924       1       1       1 ps
ALIVE

run_snippet bash subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1932 sh
      7       1       1       1    1932 bash
     20       7       1       1    1932 bash
   1342      20       1       1    1932 python2
   1343    1342       1       1    1932 time-helper
   1344    1343       1       1    1932 bash
   1819    1344       1       1    1932 bash
   1928    1819       1       1    1932 python2
   1929    1928       1       1    1932 time-helper
   1930    1929       1       1    1932 bash
   1931    1930    1931       1    1932 bash
   1932    1931    1932       1    1932 bash
   1933    1932    1932       1    1932 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   1936    1819       1       1       1 python2
   1937    1936       1       1       1 time-helper
   1938    1937       1       1       1 bash
   1939    1938       1       1       1 bash
   1940    1939       1       1       1 ps

run_snippet bash csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1946 sh
      7       1       1       1    1946 bash
     20       7       1       1    1946 bash
   1342      20       1       1    1946 python2
   1343    1342       1       1    1946 time-helper
   1344    1343       1       1    1946 bash
   1819    1344       1       1    1946 bash
   1943    1819       1       1    1946 python2
   1944    1943       1       1    1946 time-helper
   1945    1944       1       1    1946 bash
   1946    1945    1946       1    1946 bash
   1947    1946    1946       1    1946 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   1950    1819       1       1       1 python2
   1951    1950       1       1       1 time-helper
   1952    1951       1       1       1 bash
   1953    1952       1       1       1 bash
   1954    1953       1       1       1 bash
   1955    1953       1       1       1 cat
   1956    1954       1       1       1 ps

run_snippet bash psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1964 sh
      7       1       1       1    1964 bash
     20       7       1       1    1964 bash
   1342      20       1       1    1964 python2
   1343    1342       1       1    1964 time-helper
   1344    1343       1       1    1964 bash
   1819    1344       1       1    1964 bash
   1959    1819       1       1    1964 python2
   1960    1959       1       1    1964 time-helper
   1961    1960       1       1    1964 bash
   1962    1961    1962       1    1964 bash
   1963    1962    1962       1    1964 bash
   1964    1962    1964       1    1964 cat
   1965    1963    1962       1    1964 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   1968    1819       1       1       1 python2
   1969    1968       1       1       1 time-helper
   1970    1969       1       1       1 bash
   1971    1970       1       1       1 dash
   1972    1971       1       1       1 ps

run_snippet dash fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1979 sh
      7       1       1       1    1979 bash
     20       7       1       1    1979 bash
   1342      20       1       1    1979 python2
   1343    1342       1       1    1979 time-helper
   1344    1343       1       1    1979 bash
   1819    1344       1       1    1979 bash
   1975    1819       1       1    1979 python2
   1976    1975       1       1    1979 time-helper
   1977    1976       1       1    1979 bash
   1978    1977    1978       1    1979 dash
   1979    1978    1979       1    1979 ps

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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   1982    1819       1       1       1 python2
   1983    1982       1       1       1 time-helper
   1984    1983       1       1       1 bash
   1985    1984       1       1       1 dash
   1986    1985       1       1       1 ps

run_snippet dash bgproc yes
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1992 sh
      7       1       1       1    1992 bash
     20       7       1       1    1992 bash
   1342      20       1       1    1992 python2
   1343    1342       1       1    1992 time-helper
   1344    1343       1       1    1992 bash
   1819    1344       1       1    1992 bash
   1989    1819       1       1    1992 python2
   1990    1989       1       1    1992 time-helper
   1991    1990       1       1    1992 bash
   1992    1991    1992       1    1992 dash
   1993    1992    1993       1    1992 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   1996    1819       1       1       1 python2
   1997    1996       1       1       1 time-helper
   1998    1997       1       1       1 bash
   1999    1998       1       1       1 dash
   2000    1999       1       1       1 ps
   2001    1999       1       1       1 cat
   2002    1999       1       1       1 cat2

run_snippet dash fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2009 sh
      7       1       1       1    2009 bash
     20       7       1       1    2009 bash
   1342      20       1       1    2009 python2
   1343    1342       1       1    2009 time-helper
   1344    1343       1       1    2009 bash
   1819    1344       1       1    2009 bash
   2005    1819       1       1    2009 python2
   2006    2005       1       1    2009 time-helper
   2007    2006       1       1    2009 bash
   2008    2007    2008       1    2009 dash
   2009    2008    2009       1    2009 ps
   2010    2008    2009       1    2009 cat
   2011    2008    2009       1    2009 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
1342      20       1       1       1 python2
1343    1342       1       1       1 time-helper
1344    1343       1       1       1 bash
1819    1344       1       1       1 bash
2014    1819       1       1       1 python2
2015    2014       1       1       1 time-helper
2016    2015       1       1       1 bash
2017    2016       1       1       1 dash
2018    2017       1       1       1 ps
2019    2017       1       1       1 cat2
2020    2017       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    2027 sh
7       1       1       1    2027 bash
20       7       1       1    2027 bash
1342      20       1       1    2027 python2
1343    1342       1       1    2027 time-helper
1344    1343       1       1    2027 bash
1819    1344       1       1    2027 bash
2023    1819       1       1    2027 python2
2024    2023       1       1    2027 time-helper
2025    2024       1       1    2027 bash
2026    2025    2026       1    2027 dash
2027    2026    2027       1    2027 ps
2028    2026    2027       1    2027 cat2
2029    2026    2027       1    2027 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2032    1819       1       1       1 python2
   2033    2032       1       1       1 time-helper
   2034    2033       1       1       1 bash
   2035    2034       1       1       1 dash
   2036    2035       1       1       1 ps
   2037    2035       1       1       1 cat
   2038    2035       1       1       1 cat2

run_snippet dash bgpipe yes
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2044 sh
      7       1       1       1    2044 bash
     20       7       1       1    2044 bash
   1342      20       1       1    2044 python2
   1343    1342       1       1    2044 time-helper
   1344    1343       1       1    2044 bash
   1819    1344       1       1    2044 bash
   2041    1819       1       1    2044 python2
   2042    2041       1       1    2044 time-helper
   2043    2042       1       1    2044 bash
   2044    2043    2044       1    2044 dash
   2045    2044    2045       1    2044 ps
   2046    2044    2045       1    2044 cat
   2047    2044    2045       1    2044 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
1342      20       1       1       1 python2
1343    1342       1       1       1 time-helper
1344    1343       1       1       1 bash
1819    1344       1       1       1 bash
2050    1819       1       1       1 python2
2051    2050       1       1       1 time-helper
2052    2051       1       1       1 bash
2053    2052       1       1       1 dash
2054    2053       1       1       1 ps
2055    2053       1       1       1 cat2
2056    2053       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    2062 sh
7       1       1       1    2062 bash
20       7       1       1    2062 bash
1342      20       1       1    2062 python2
1343    1342       1       1    2062 time-helper
1344    1343       1       1    2062 bash
1819    1344       1       1    2062 bash
2059    1819       1       1    2062 python2
2060    2059       1       1    2062 time-helper
2061    2060       1       1    2062 bash
2062    2061    2062       1    2062 dash
2063    2062    2063       1    2062 ps
2064    2062    2063       1    2062 cat2
2065    2062    2063       1    2062 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2068    1819       1       1       1 python2
   2069    2068       1       1       1 time-helper
   2070    2069       1       1       1 bash
   2071    2070       1       1       1 dash
   2072    2071       1       1       1 dash
   2073    2072       1       1       1 ps
ALIVE

run_snippet dash subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2080 sh
      7       1       1       1    2080 bash
     20       7       1       1    2080 bash
   1342      20       1       1    2080 python2
   1343    1342       1       1    2080 time-helper
   1344    1343       1       1    2080 bash
   1819    1344       1       1    2080 bash
   2076    1819       1       1    2080 python2
   2077    2076       1       1    2080 time-helper
   2078    2077       1       1    2080 bash
   2079    2078    2079       1    2080 dash
   2080    2079    2080       1    2080 dash
   2081    2080    2080       1    2080 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2084    1819       1       1       1 python2
   2085    2084       1       1       1 time-helper
   2086    2085       1       1       1 bash
   2087    2086       1       1       1 dash
   2088    2087       1       1       1 ps

run_snippet dash csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2094 sh
      7       1       1       1    2094 bash
     20       7       1       1    2094 bash
   1342      20       1       1    2094 python2
   1343    1342       1       1    2094 time-helper
   1344    1343       1       1    2094 bash
   1819    1344       1       1    2094 bash
   2091    1819       1       1    2094 python2
   2092    2091       1       1    2094 time-helper
   2093    2092       1       1    2094 bash
   2094    2093    2094       1    2094 dash
   2095    2094    2094       1    2094 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2110    1819       1       1       1 python2
   2111    2110       1       1       1 time-helper
   2112    2111       1       1       1 bash
   2113    2112       1       1       1 mksh
   2114    2113       1       1       1 ps

run_snippet mksh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2121 sh
      7       1       1       1    2121 bash
     20       7       1       1    2121 bash
   1342      20       1       1    2121 python2
   1343    1342       1       1    2121 time-helper
   1344    1343       1       1    2121 bash
   1819    1344       1       1    2121 bash
   2117    1819       1       1    2121 python2
   2118    2117       1       1    2121 time-helper
   2119    2118       1       1    2121 bash
   2120    2119    2120       1    2121 mksh
   2121    2120    2121       1    2121 ps

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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2124    1819       1       1       1 python2
   2125    2124       1       1       1 time-helper
   2126    2125       1       1       1 bash
   2127    2126       1       1       1 mksh
   2128    2127       1       1       1 ps

run_snippet mksh bgproc yes
[1] 2135
[1] + Done                 \ps -o $PS_COLS 
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2134 sh
      7       1       1       1    2134 bash
     20       7       1       1    2134 bash
   1342      20       1       1    2134 python2
   1343    1342       1       1    2134 time-helper
   1344    1343       1       1    2134 bash
   1819    1344       1       1    2134 bash
   2131    1819       1       1    2134 python2
   2132    2131       1       1    2134 time-helper
   2133    2132       1       1    2134 bash
   2134    2133    2134       1    2134 mksh
   2135    2134    2135       1    2134 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2138    1819       1       1       1 python2
   2139    2138       1       1       1 time-helper
   2140    2139       1       1       1 bash
   2141    2140       1       1       1 mksh
   2142    2141       1       1       1 ps
   2143    2141       1       1       1 mksh
   2144    2141       1       1       1 cat2

run_snippet mksh fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2151 sh
      7       1       1       1    2151 bash
     20       7       1       1    2151 bash
   1342      20       1       1    2151 python2
   1343    1342       1       1    2151 time-helper
   1344    1343       1       1    2151 bash
   1819    1344       1       1    2151 bash
   2147    1819       1       1    2151 python2
   2148    2147       1       1    2151 time-helper
   2149    2148       1       1    2151 bash
   2150    2149    2150       1    2151 mksh
   2151    2150    2151       1    2151 ps
   2152    2150    2151       1    2151 mksh
   2153    2150    2151       1    2151 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
1342      20       1       1       1 python2
1343    1342       1       1       1 time-helper
1344    1343       1       1       1 bash
1819    1344       1       1       1 bash
2156    1819       1       1       1 python2
2157    2156       1       1       1 time-helper
2158    2157       1       1       1 bash
2159    2158       1       1       1 mksh
2160    2159       1       1       1 ps
2161    2159       1       1       1 cat2
2162    2159       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    2169 sh
7       1       1       1    2169 bash
20       7       1       1    2169 bash
1342      20       1       1    2169 python2
1343    1342       1       1    2169 time-helper
1344    1343       1       1    2169 bash
1819    1344       1       1    2169 bash
2165    1819       1       1    2169 python2
2166    2165       1       1    2169 time-helper
2167    2166       1       1    2169 bash
2168    2167    2168       1    2169 mksh
2169    2168    2169       1    2169 ps
2170    2168    2169       1    2169 cat2
2171    2168    2169       1    2169 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2174    1819       1       1       1 python2
   2175    2174       1       1       1 time-helper
   2176    2175       1       1       1 bash
   2177    2176       1       1       1 mksh
   2178    2177       1       1       1 ps
   2179    2177       1       1       1 mksh
   2180    2177       1       1       1 cat2

run_snippet mksh bgpipe yes
[1] 2187 2188 2189
[1] + Done                 \ps -o $PS_COLS | \cat | _tmp/cat2 
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2186 sh
      7       1       1       1    2186 bash
     20       7       1       1    2186 bash
   1342      20       1       1    2186 python2
   1343    1342       1       1    2186 time-helper
   1344    1343       1       1    2186 bash
   1819    1344       1       1    2186 bash
   2183    1819       1       1    2186 python2
   2184    2183       1       1    2186 time-helper
   2185    2184       1       1    2186 bash
   2186    2185    2186       1    2186 mksh
   2187    2186    2187       1    2186 ps
   2188    2186    2187       1    2186 mksh
   2189    2186    2187       1    2186 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
1342      20       1       1       1 python2
1343    1342       1       1       1 time-helper
1344    1343       1       1       1 bash
1819    1344       1       1       1 bash
2192    1819       1       1       1 python2
2193    2192       1       1       1 time-helper
2194    2193       1       1       1 bash
2195    2194       1       1       1 mksh
2196    2195       1       1       1 ps
2197    2195       1       1       1 cat2
2198    2195       1       1       1 mksh

run_snippet mksh bgpipe-lastpipe yes
[1] 2205 2206 2207
[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    2204 sh
7       1       1       1    2204 bash
20       7       1       1    2204 bash
1342      20       1       1    2204 python2
1343    1342       1       1    2204 time-helper
1344    1343       1       1    2204 bash
1819    1344       1       1    2204 bash
2201    1819       1       1    2204 python2
2202    2201       1       1    2204 time-helper
2203    2202       1       1    2204 bash
2204    2203    2204       1    2204 mksh
2205    2204    2205       1    2204 ps
2206    2204    2205       1    2204 cat2
2207    2204    2205       1    2204 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2210    1819       1       1       1 python2
   2211    2210       1       1       1 time-helper
   2212    2211       1       1       1 bash
   2213    2212       1       1       1 mksh
   2214    2213       1       1       1 mksh
   2215    2214       1       1       1 ps
ALIVE

run_snippet mksh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2222 sh
      7       1       1       1    2222 bash
     20       7       1       1    2222 bash
   1342      20       1       1    2222 python2
   1343    1342       1       1    2222 time-helper
   1344    1343       1       1    2222 bash
   1819    1344       1       1    2222 bash
   2218    1819       1       1    2222 python2
   2219    2218       1       1    2222 time-helper
   2220    2219       1       1    2222 bash
   2221    2220    2221       1    2222 mksh
   2222    2221    2222       1    2222 mksh
   2223    2222    2222       1    2222 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2226    1819       1       1       1 python2
   2227    2226       1       1       1 time-helper
   2228    2227       1       1       1 bash
   2229    2228       1       1       1 mksh
   2230    2229       1       1       1 ps

run_snippet mksh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2236 sh
      7       1       1       1    2236 bash
     20       7       1       1    2236 bash
   1342      20       1       1    2236 python2
   1343    1342       1       1    2236 time-helper
   1344    1343       1       1    2236 bash
   1819    1344       1       1    2236 bash
   2233    1819       1       1    2236 python2
   2234    2233       1       1    2236 time-helper
   2235    2234       1       1    2236 bash
   2236    2235    2236       1    2236 mksh
   2237    2236    2236       1    2236 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2252    1819       1       1       1 python2
   2253    2252       1       1       1 time-helper
   2254    2253       1       1       1 bash
   2255    2254       1       1       1 zsh
   2256    2255       1       1       1 ps

run_snippet zsh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2264 sh
      7       1       1       1    2264 bash
     20       7       1       1    2264 bash
   1342      20       1       1    2264 python2
   1343    1342       1       1    2264 time-helper
   1344    1343       1       1    2264 bash
   1819    1344       1       1    2264 bash
   2259    1819       1       1    2264 python2
   2260    2259       1       1    2264 time-helper
   2261    2260       1       1    2264 bash
   2262    2261    2262       1    2264 zsh
   2264    2262    2264       1    2264 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2267    1819       1       1       1 python2
   2268    2267       1       1       1 time-helper
   2269    2268       1       1       1 bash
   2270    2269       1       1       1 zsh
   2271    2270       1       1       1 ps

run_snippet zsh bgproc yes
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2277 sh
      7       1       1       1    2277 bash
     20       7       1       1    2277 bash
   1342      20       1       1    2277 python2
   1343    1342       1       1    2277 time-helper
   1344    1343       1       1    2277 bash
   1819    1344       1       1    2277 bash
   2274    1819       1       1    2277 python2
   2275    2274       1       1    2277 time-helper
   2276    2275       1       1    2277 bash
   2277    2276    2277       1    2277 zsh
   2279    2277    2279       1    2277 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2282    1819       1       1       1 python2
   2283    2282       1       1       1 time-helper
   2284    2283       1       1       1 bash
   2285    2284       1       1       1 zsh
   2286    2285       1       1       1 ps
   2287    2285       1       1       1 cat
   2288    2285       1       1       1 cat2

run_snippet zsh fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2296 sh
      7       1       1       1    2296 bash
     20       7       1       1    2296 bash
   1342      20       1       1    2296 python2
   1343    1342       1       1    2296 time-helper
   1344    1343       1       1    2296 bash
   1819    1344       1       1    2296 bash
   2291    1819       1       1    2296 python2
   2292    2291       1       1    2296 time-helper
   2293    2292       1       1    2296 bash
   2294    2293    2294       1    2296 zsh
   2296    2294    2296       1    2296 ps
   2297    2294    2296       1    2296 cat
   2298    2294    2296       1    2296 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
1342      20       1       1       1 python2
1343    1342       1       1       1 time-helper
1344    1343       1       1       1 bash
1819    1344       1       1       1 bash
2301    1819       1       1       1 python2
2302    2301       1       1       1 time-helper
2303    2302       1       1       1 bash
2304    2303       1       1       1 zsh
2305    2304       1       1       1 ps
2306    2304       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    2314 sh
7       1       1       1    2314 bash
20       7       1       1    2314 bash
1342      20       1       1    2314 python2
1343    1342       1       1    2314 time-helper
1344    1343       1       1    2314 bash
1819    1344       1       1    2314 bash
2309    1819       1       1    2314 python2
2310    2309       1       1    2314 time-helper
2311    2310       1       1    2314 bash
2312    2311    2312       1    2314 zsh
2314    2312    2314       1    2314 ps
2315    2312    2314       1    2314 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2318    1819       1       1       1 python2
   2319    2318       1       1       1 time-helper
   2320    2319       1       1       1 bash
   2321    2320       1       1       1 zsh
   2322    2321       1       1       1 ps
   2323    2321       1       1       1 cat
   2324    2321       1       1       1 cat2

run_snippet zsh bgpipe yes
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2330 sh
      7       1       1       1    2330 bash
     20       7       1       1    2330 bash
   1342      20       1       1    2330 python2
   1343    1342       1       1    2330 time-helper
   1344    1343       1       1    2330 bash
   1819    1344       1       1    2330 bash
   2327    1819       1       1    2330 python2
   2328    2327       1       1    2330 time-helper
   2329    2328       1       1    2330 bash
   2330    2329    2330       1    2330 zsh
   2332    2330    2332       1    2330 ps
   2333    2330    2332       1    2330 cat
   2334    2330    2332       1    2330 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
1342      20       1       1       1 python2
1343    1342       1       1       1 time-helper
1344    1343       1       1       1 bash
1819    1344       1       1       1 bash
2337    1819       1       1       1 python2
2338    2337       1       1       1 time-helper
2339    2338       1       1       1 bash
2340    2339       1       1       1 zsh
2341    2340       1       1       1 ps
2342    2340       1       1       1 cat2
2343    2340       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    2349 sh
7       1       1       1    2349 bash
20       7       1       1    2349 bash
1342      20       1       1    2349 python2
1343    1342       1       1    2349 time-helper
1344    1343       1       1    2349 bash
1819    1344       1       1    2349 bash
2346    1819       1       1    2349 python2
2347    2346       1       1    2349 time-helper
2348    2347       1       1    2349 bash
2349    2348    2349       1    2349 zsh
2351    2349    2351       1    2349 ps
2352    2349    2351       1    2349 cat2
2353    2349    2351       1    2349 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2356    1819       1       1       1 python2
   2357    2356       1       1       1 time-helper
   2358    2357       1       1       1 bash
   2359    2358       1       1       1 zsh
   2360    2359       1       1       1 zsh
   2361    2360       1       1       1 ps
ALIVE

run_snippet zsh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2369 sh
      7       1       1       1    2369 bash
     20       7       1       1    2369 bash
   1342      20       1       1    2369 python2
   1343    1342       1       1    2369 time-helper
   1344    1343       1       1    2369 bash
   1819    1344       1       1    2369 bash
   2364    1819       1       1    2369 python2
   2365    2364       1       1    2369 time-helper
   2366    2365       1       1    2369 bash
   2367    2366    2367       1    2369 zsh
   2369    2367    2369       1    2369 zsh
   2370    2369    2369       1    2369 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2373    1819       1       1       1 python2
   2374    2373       1       1       1 time-helper
   2375    2374       1       1       1 bash
   2376    2375       1       1       1 zsh
   2377    2376       1       1       1 ps

run_snippet zsh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2383 sh
      7       1       1       1    2383 bash
     20       7       1       1    2383 bash
   1342      20       1       1    2383 python2
   1343    1342       1       1    2383 time-helper
   1344    1343       1       1    2383 bash
   1819    1344       1       1    2383 bash
   2380    1819       1       1    2383 python2
   2381    2380       1       1    2383 time-helper
   2382    2381       1       1    2383 bash
   2383    2382    2383       1    2383 zsh
   2385    2383    2383       1    2383 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2388    1819       1       1       1 python2
   2389    2388       1       1       1 time-helper
   2390    2389       1       1       1 bash
   2391    2390       1       1       1 zsh
   2392    2391       1       1       1 ps
   2393    2391       1       1       1 cat

run_snippet zsh psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2402 sh
      7       1       1       1    2402 bash
     20       7       1       1    2402 bash
   1342      20       1       1    2402 python2
   1343    1342       1       1    2402 time-helper
   1344    1343       1       1    2402 bash
   1819    1344       1       1    2402 bash
   2396    1819       1       1    2402 python2
   2397    2396       1       1    2402 time-helper
   2398    2397       1       1    2402 bash
   2399    2398    2399       1    2402 zsh
   2401    2399    2401       1    2402 ps
   2402    2399    2402       1    2402 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2405    1819       1       1       1 python2
   2406    2405       1       1       1 time-helper
   2407    2406       1       1       1 bash
   2408    2407       1       1       1 python2
   2411    2408       1       1       1 ps

run_snippet bin/osh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2420 sh
      7       1       1       1    2420 bash
     20       7       1       1    2420 bash
   1342      20       1       1    2420 python2
   1343    1342       1       1    2420 time-helper
   1344    1343       1       1    2420 bash
   1819    1344       1       1    2420 bash
   2414    1819       1       1    2420 python2
   2415    2414       1       1    2420 time-helper
   2416    2415       1       1    2420 bash
   2417    2416    2417       1    2420 python2
   2420    2417    2420       1    2420 ps

run_snippet bin/osh bgproc -
[%1] PID 2429 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2423    1819       1       1       1 python2
   2424    2423       1       1       1 time-helper
   2425    2424       1       1       1 bash
   2426    2425       1       1       1 python2
   2429    2426       1       1       1 ps

run_snippet bin/osh bgproc yes
[%1] PID 2438 Started
[%1] PID 2438 Done
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2435 sh
      7       1       1       1    2435 bash
     20       7       1       1    2435 bash
   1342      20       1       1    2435 python2
   1343    1342       1       1    2435 time-helper
   1344    1343       1       1    2435 bash
   1819    1344       1       1    2435 bash
   2432    1819       1       1    2435 python2
   2433    2432       1       1    2435 time-helper
   2434    2433       1       1    2435 bash
   2435    2434    2435       1    2435 python2
   2438    2435    2438       1    2435 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2441    1819       1       1       1 python2
   2442    2441       1       1       1 time-helper
   2443    2442       1       1       1 bash
   2444    2443       1       1       1 python2
   2447    2444       1       1       1 ps
   2448    2444       1       1       1 cat
   2449    2444       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    2458 sh
      7       1       1       1    2458 bash
     20       7       1       1    2458 bash
   1342      20       1       1    2458 python2
   1343    1342       1       1    2458 time-helper
   1344    1343       1       1    2458 bash
   1819    1344       1       1    2458 bash
   2452    1819       1       1    2458 python2
   2453    2452       1       1    2458 time-helper
   2454    2453       1       1    2458 bash
   2455    2454    2455       1    2458 python2
   2458    2455    2458       1    2458 ps
   2459    2455    2458       1    2458 cat
   2460    2455    2458       1    2458 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
1342      20       1       1       1 python2
1343    1342       1       1       1 time-helper
1344    1343       1       1       1 bash
1819    1344       1       1       1 bash
2463    1819       1       1       1 python2
2464    2463       1       1       1 time-helper
2465    2464       1       1       1 bash
2466    2465       1       1       1 python2
2469    2466       1       1       1 ps
2470    2466       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    2479 sh
7       1       1       1    2479 bash
20       7       1       1    2479 bash
1342      20       1       1    2479 python2
1343    1342       1       1    2479 time-helper
1344    1343       1       1    2479 bash
1819    1344       1       1    2479 bash
2473    1819       1       1    2479 python2
2474    2473       1       1    2479 time-helper
2475    2474       1       1    2479 bash
2476    2475    2476       1    2479 python2
2479    2476    2479       1    2479 ps
2480    2476    2479       1    2479 cat2

run_snippet bin/osh bgpipe -
[%1] PGID 2489 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2483    1819       1       1       1 python2
   2484    2483       1       1       1 time-helper
   2485    2484       1       1       1 bash
   2486    2485       1       1       1 python2
   2489    2486       1       1       1 ps
   2490    2486       1       1       1 cat
   2491    2486       1       1       1 cat2

run_snippet bin/osh bgpipe yes
[%1] PID 2502 Started
[%1] PGID 2500 Done
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2497 sh
      7       1       1       1    2497 bash
     20       7       1       1    2497 bash
   1342      20       1       1    2497 python2
   1343    1342       1       1    2497 time-helper
   1344    1343       1       1    2497 bash
   1819    1344       1       1    2497 bash
   2494    1819       1       1    2497 python2
   2495    2494       1       1    2497 time-helper
   2496    2495       1       1    2497 bash
   2497    2496    2497       1    2497 python2
   2500    2497    2500       1    2497 ps
   2501    2497    2500       1    2497 cat
   2502    2497    2500       1    2497 cat2

run_snippet bin/osh bgpipe-lastpipe -
[%1] PGID 2511 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
1342      20       1       1       1 python2
1343    1342       1       1       1 time-helper
1344    1343       1       1       1 bash
1819    1344       1       1       1 bash
2505    1819       1       1       1 python2
2506    2505       1       1       1 time-helper
2507    2506       1       1       1 bash
2508    2507       1       1       1 python2
2511    2508       1       1       1 ps
2512    2508       1       1       1 cat2
2513    2508       1       1       1 python2

run_snippet bin/osh bgpipe-lastpipe yes
[%1] PID 2524 Started
[%1] PGID 2522 Done
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    2519 sh
7       1       1       1    2519 bash
20       7       1       1    2519 bash
1342      20       1       1    2519 python2
1343    1342       1       1    2519 time-helper
1344    1343       1       1    2519 bash
1819    1344       1       1    2519 bash
2516    1819       1       1    2519 python2
2517    2516       1       1    2519 time-helper
2518    2517       1       1    2519 bash
2519    2518    2519       1    2519 python2
2522    2519    2522       1    2519 ps
2523    2519    2522       1    2519 cat2
2524    2519    2522       1    2519 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2527    1819       1       1       1 python2
   2528    2527       1       1       1 time-helper
   2529    2528       1       1       1 bash
   2530    2529       1       1       1 python2
   2533    2530       1       1       1 python2
   2534    2533       1       1       1 ps
ALIVE

run_snippet bin/osh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2543 sh
      7       1       1       1    2543 bash
     20       7       1       1    2543 bash
   1342      20       1       1    2543 python2
   1343    1342       1       1    2543 time-helper
   1344    1343       1       1    2543 bash
   1819    1344       1       1    2543 bash
   2537    1819       1       1    2543 python2
   2538    2537       1       1    2543 time-helper
   2539    2538       1       1    2543 bash
   2540    2539    2540       1    2543 python2
   2543    2540    2543       1    2543 python2
   2544    2543    2543       1    2543 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2547    1819       1       1       1 python2
   2548    2547       1       1       1 time-helper
   2549    2548       1       1       1 bash
   2550    2549       1       1       1 python2
   2553    2550       1       1       1 ps

run_snippet bin/osh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2559 sh
      7       1       1       1    2559 bash
     20       7       1       1    2559 bash
   1342      20       1       1    2559 python2
   1343    1342       1       1    2559 time-helper
   1344    1343       1       1    2559 bash
   1819    1344       1       1    2559 bash
   2556    1819       1       1    2559 python2
   2557    2556       1       1    2559 time-helper
   2558    2557       1       1    2559 bash
   2559    2558    2559       1    2559 python2
   2562    2559    2559       1    2559 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2565    1819       1       1       1 python2
   2566    2565       1       1       1 time-helper
   2567    2566       1       1       1 bash
   2568    2567       1       1       1 python2
   2571    2568       1       1       1 ps
   2572    2568       1       1       1 cat

run_snippet bin/osh psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2582 sh
      7       1       1       1    2582 bash
     20       7       1       1    2582 bash
   1342      20       1       1    2582 python2
   1343    1342       1       1    2582 time-helper
   1344    1343       1       1    2582 bash
   1819    1344       1       1    2582 bash
   2575    1819       1       1    2582 python2
   2576    2575       1       1    2582 time-helper
   2577    2576       1       1    2582 bash
   2578    2577    2578       1    2582 python2
   2581    2578    2581       1    2582 ps
   2582    2578    2582       1    2582 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2585    1819       1       1       1 python2
   2586    2585       1       1       1 time-helper
   2587    2586       1       1       1 bash
   2588    2587       1       1       1 osh
   2589    2588       1       1       1 ps

run_snippet _bin/cxx-dbg/osh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2596 sh
      7       1       1       1    2596 bash
     20       7       1       1    2596 bash
   1342      20       1       1    2596 python2
   1343    1342       1       1    2596 time-helper
   1344    1343       1       1    2596 bash
   1819    1344       1       1    2596 bash
   2592    1819       1       1    2596 python2
   2593    2592       1       1    2596 time-helper
   2594    2593       1       1    2596 bash
   2595    2594    2595       1    2596 osh
   2596    2595    2596       1    2596 ps

run_snippet _bin/cxx-dbg/osh bgproc -
[%1] PID 2603 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2599    1819       1       1       1 python2
   2600    2599       1       1       1 time-helper
   2601    2600       1       1       1 bash
   2602    2601       1       1       1 osh
   2603    2602       1       1       1 ps

run_snippet _bin/cxx-dbg/osh bgproc yes
[%1] PID 2610 Started
[%1] PID 2610 Done
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2609 sh
      7       1       1       1    2609 bash
     20       7       1       1    2609 bash
   1342      20       1       1    2609 python2
   1343    1342       1       1    2609 time-helper
   1344    1343       1       1    2609 bash
   1819    1344       1       1    2609 bash
   2606    1819       1       1    2609 python2
   2607    2606       1       1    2609 time-helper
   2608    2607       1       1    2609 bash
   2609    2608    2609       1    2609 osh
   2610    2609    2610       1    2609 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2613    1819       1       1       1 python2
   2614    2613       1       1       1 time-helper
   2615    2614       1       1       1 bash
   2616    2615       1       1       1 osh
   2617    2616       1       1       1 ps
   2618    2616       1       1       1 cat
   2619    2616       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    2626 sh
      7       1       1       1    2626 bash
     20       7       1       1    2626 bash
   1342      20       1       1    2626 python2
   1343    1342       1       1    2626 time-helper
   1344    1343       1       1    2626 bash
   1819    1344       1       1    2626 bash
   2622    1819       1       1    2626 python2
   2623    2622       1       1    2626 time-helper
   2624    2623       1       1    2626 bash
   2625    2624    2625       1    2626 osh
   2626    2625    2626       1    2626 ps
   2627    2625    2626       1    2626 cat
   2628    2625    2626       1    2626 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
1342      20       1       1       1 python2
1343    1342       1       1       1 time-helper
1344    1343       1       1       1 bash
1819    1344       1       1       1 bash
2631    1819       1       1       1 python2
2632    2631       1       1       1 time-helper
2633    2632       1       1       1 bash
2634    2633       1       1       1 osh
2635    2634       1       1       1 ps
2636    2634       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    2643 sh
7       1       1       1    2643 bash
20       7       1       1    2643 bash
1342      20       1       1    2643 python2
1343    1342       1       1    2643 time-helper
1344    1343       1       1    2643 bash
1819    1344       1       1    2643 bash
2639    1819       1       1    2643 python2
2640    2639       1       1    2643 time-helper
2641    2640       1       1    2643 bash
2642    2641    2642       1    2643 osh
2643    2642    2643       1    2643 ps
2644    2642    2643       1    2643 cat2

run_snippet _bin/cxx-dbg/osh bgpipe -
[%1] PGID 2651 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2647    1819       1       1       1 python2
   2648    2647       1       1       1 time-helper
   2649    2648       1       1       1 bash
   2650    2649       1       1       1 osh
   2651    2650       1       1       1 ps
   2652    2650       1       1       1 cat
   2653    2650       1       1       1 cat2

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

run_snippet _bin/cxx-dbg/osh bgpipe-lastpipe -
[%1] PGID 2669 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
1342      20       1       1       1 python2
1343    1342       1       1       1 time-helper
1344    1343       1       1       1 bash
1819    1344       1       1       1 bash
2665    1819       1       1       1 python2
2666    2665       1       1       1 time-helper
2667    2666       1       1       1 bash
2668    2667       1       1       1 osh
2669    2668       1       1       1 ps
2670    2668       1       1       1 cat2
2671    2668       1       1       1 osh

run_snippet _bin/cxx-dbg/osh bgpipe-lastpipe yes
[%1] PID 2680 Started
[%1] PGID 2678 Done
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    2677 sh
7       1       1       1    2677 bash
20       7       1       1    2677 bash
1342      20       1       1    2677 python2
1343    1342       1       1    2677 time-helper
1344    1343       1       1    2677 bash
1819    1344       1       1    2677 bash
2674    1819       1       1    2677 python2
2675    2674       1       1    2677 time-helper
2676    2675       1       1    2677 bash
2677    2676    2677       1    2677 osh
2678    2677    2678       1    2677 ps
2679    2677    2678       1    2677 cat2
2680    2677    2678       1    2677 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2683    1819       1       1       1 python2
   2684    2683       1       1       1 time-helper
   2685    2684       1       1       1 bash
   2686    2685       1       1       1 osh
   2687    2686       1       1       1 osh
   2688    2687       1       1       1 ps
ALIVE

run_snippet _bin/cxx-dbg/osh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2695 sh
      7       1       1       1    2695 bash
     20       7       1       1    2695 bash
   1342      20       1       1    2695 python2
   1343    1342       1       1    2695 time-helper
   1344    1343       1       1    2695 bash
   1819    1344       1       1    2695 bash
   2691    1819       1       1    2695 python2
   2692    2691       1       1    2695 time-helper
   2693    2692       1       1    2695 bash
   2694    2693    2694       1    2695 osh
   2695    2694    2695       1    2695 osh
   2696    2695    2695       1    2695 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2699    1819       1       1       1 python2
   2700    2699       1       1       1 time-helper
   2701    2700       1       1       1 bash
   2702    2701       1       1       1 osh
   2703    2702       1       1       1 ps

run_snippet _bin/cxx-dbg/osh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2709 sh
      7       1       1       1    2709 bash
     20       7       1       1    2709 bash
   1342      20       1       1    2709 python2
   1343    1342       1       1    2709 time-helper
   1344    1343       1       1    2709 bash
   1819    1344       1       1    2709 bash
   2706    1819       1       1    2709 python2
   2707    2706       1       1    2709 time-helper
   2708    2707       1       1    2709 bash
   2709    2708    2709       1    2709 osh
   2710    2709    2709       1    2709 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
   1342      20       1       1       1 python2
   1343    1342       1       1       1 time-helper
   1344    1343       1       1       1 bash
   1819    1344       1       1       1 bash
   2713    1819       1       1       1 python2
   2714    2713       1       1       1 time-helper
   2715    2714       1       1       1 bash
   2716    2715       1       1       1 osh
   2717    2716       1       1       1 ps
   2718    2716       1       1       1 cat

run_snippet _bin/cxx-dbg/osh psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2726 sh
      7       1       1       1    2726 bash
     20       7       1       1    2726 bash
   1342      20       1       1    2726 python2
   1343    1342       1       1    2726 time-helper
   1344    1343       1       1    2726 bash
   1819    1344       1       1    2726 bash
   2721    1819       1       1    2726 python2
   2722    2721       1       1    2726 time-helper
   2723    2722       1       1    2726 bash
   2724    2723    2724       1    2726 osh
   2725    2724    2725       1    2726 ps
   2726    2724    2726       1    2726 cat

Wrote _tmp/process-table/index.html