'_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/asdl_main asdl/asdl_main.py asdl/ast.py asdl/front_end.py asdl/gen_cpp.py asdl/gen_python.py asdl/util.py asdl/visitor.py
[4/66] make-pystub _bin/shwrap/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
[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] 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] optview_gen > _gen/core/optview.h
[10/66] asdl_main cpp  core/runtime.asdl _gen/core/runtime.asdl _gen/core/runtime.asdl_debug.py
[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/value.asdl _gen/core/value.asdl _gen/core/value.asdl_debug.py
[16/66] consts_gen cpp _gen/frontend/option.asdl
[17/66] consts_gen cpp _gen/frontend/id_kind.asdl
[18/66] flag_gen cpp _gen/frontend/arg_types
[19/66] consts_gen cpp-consts _gen/frontend/consts
[20/66] signal_gen cpp _gen/frontend/signal
[21/66] make-pystub _bin/shwrap/mycpp_main mycpp/mycpp_main.py mycpp/const_pass.py mycpp/control_flow_pass.py mycpp/conversion_pass.py mycpp/cppgen_pass.py mycpp/crash.py mycpp/format_strings.py mycpp/pass_state.py mycpp/translate.py mycpp/util.py mycpp/visitor.py
[22/66] 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] asdl_main cpp --no-pretty-print-methods frontend/types.asdl _gen/frontend/types.asdl _gen/frontend/types.asdl_debug.py
[24/66] make-pystub _bin/shwrap/arith_parse_gen osh/arith_parse_gen.py _devbuild/gen/hnode_asdl.py _devbuild/gen/id_kind_asdl.py _devbuild/gen/nil8_asdl.py _devbuild/gen/pretty_asdl.py _devbuild/gen/runtime_asdl.py _devbuild/gen/syntax_asdl.py _devbuild/gen/types_asdl.py _devbuild/gen/value_asdl.py asdl/format.py asdl/pybase.py asdl/runtime.py core/bash_impl.py core/error.py core/num.py core/optview.py data_lang/j8.py data_lang/j8_lite.py data_lang/pyj8.py display/ansi.py display/pp_hnode.py display/pp_value.py display/pretty.py display/ui.py frontend/builtin_def.py frontend/consts.py frontend/id_kind_def.py frontend/lexer.py frontend/lexer_def.py frontend/location.py frontend/match.py frontend/option_def.py frontend/syntax_abbrev.py mycpp/mops.py mycpp/mylib.py osh/arith_parse.py osh/tdop.py osh/word_.py pylib/collections_.py
[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 '' cpp/data_lang.cc _build/obj/cxx-dbg/cpp/data_lang.o
[30/66] cxx dbg '' _gen/display/pretty.asdl.cc _build/obj/cxx-dbg/_gen/display/pretty.asdl.o
[31/66] cxx dbg '' mycpp/bump_leak_heap.cc _build/obj/cxx-dbg/mycpp/bump_leak_heap.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 '' _gen/core/value.asdl.cc _build/obj/cxx-dbg/_gen/core/value.asdl.o
[35/66] cxx dbg '' mycpp/gc_iolib.cc _build/obj/cxx-dbg/mycpp/gc_iolib.o
[36/66] cxx dbg '' mycpp/hash.cc _build/obj/cxx-dbg/mycpp/hash.o
[37/66] cxx dbg '' mycpp/gc_mops.cc _build/obj/cxx-dbg/mycpp/gc_mops.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 '' cpp/fanos.cc _build/obj/cxx-dbg/cpp/fanos.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_tdop.cc _build/obj/cxx-dbg/cpp/osh_tdop.o
[51/66] cxx dbg '' cpp/osh.cc _build/obj/cxx-dbg/cpp/osh.o
[52/66] cxx dbg '' cpp/pylib.cc _build/obj/cxx-dbg/cpp/pylib.o
[53/66] cxx dbg '' cpp/pgen2.cc _build/obj/cxx-dbg/cpp/pgen2.o
[54/66] cxx dbg '' _gen/data_lang/nil8.asdl.cc _build/obj/cxx-dbg/_gen/data_lang/nil8.asdl.o
[55/66] cxx dbg '' _gen/frontend/arg_types.cc _build/obj/cxx-dbg/_gen/frontend/arg_types.o
[56/66] cxx dbg '' cpp/stdlib.cc _build/obj/cxx-dbg/cpp/stdlib.o
[57/66] cxx dbg '' mycpp/gc_str.cc _build/obj/cxx-dbg/mycpp/gc_str.o
[58/66] cxx dbg '' _gen/frontend/consts.cc _build/obj/cxx-dbg/_gen/frontend/consts.o
[59/66] cxx dbg '' _gen/frontend/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 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   1827    1826       1       1       1 python2
   1828    1827       1       1       1 time-helper
   1829    1828       1       1       1 bash
   1830    1829       1       1       1 bash
   1831    1830       1       1       1 ps

run_snippet bash fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1838 sh
      7       1       1       1    1838 bash
     20       7       1       1    1838 bash
   1349      20       1       1    1838 python2
   1350    1349       1       1    1838 time-helper
   1351    1350       1       1    1838 bash
   1826    1351       1       1    1838 bash
   1834    1826       1       1    1838 python2
   1835    1834       1       1    1838 time-helper
   1836    1835       1       1    1838 bash
   1837    1836    1837       1    1838 bash
   1838    1837    1838       1    1838 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   1841    1826       1       1       1 python2
   1842    1841       1       1       1 time-helper
   1843    1842       1       1       1 bash
   1844    1843       1       1       1 bash
   1845    1844       1       1       1 ps

run_snippet bash bgproc yes
[1] 1852
[1]+  Done                    ps -o $PS_COLS
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1851 sh
      7       1       1       1    1851 bash
     20       7       1       1    1851 bash
   1349      20       1       1    1851 python2
   1350    1349       1       1    1851 time-helper
   1351    1350       1       1    1851 bash
   1826    1351       1       1    1851 bash
   1848    1826       1       1    1851 python2
   1849    1848       1       1    1851 time-helper
   1850    1849       1       1    1851 bash
   1851    1850    1851       1    1851 bash
   1852    1851    1852       1    1851 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   1855    1826       1       1       1 python2
   1856    1855       1       1       1 time-helper
   1857    1856       1       1       1 bash
   1858    1857       1       1       1 bash
   1859    1858       1       1       1 ps
   1860    1858       1       1       1 cat
   1861    1858       1       1       1 cat2

run_snippet bash fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1868 sh
      7       1       1       1    1868 bash
     20       7       1       1    1868 bash
   1349      20       1       1    1868 python2
   1350    1349       1       1    1868 time-helper
   1351    1350       1       1    1868 bash
   1826    1351       1       1    1868 bash
   1864    1826       1       1    1868 python2
   1865    1864       1       1    1868 time-helper
   1866    1865       1       1    1868 bash
   1867    1866    1867       1    1868 bash
   1868    1867    1868       1    1868 ps
   1869    1867    1868       1    1868 cat
   1870    1867    1868       1    1868 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
1349      20       1       1       1 python2
1350    1349       1       1       1 time-helper
1351    1350       1       1       1 bash
1826    1351       1       1       1 bash
1873    1826       1       1       1 python2
1874    1873       1       1       1 time-helper
1875    1874       1       1       1 bash
1876    1875       1       1       1 bash
1877    1876       1       1       1 ps
1878    1876       1       1       1 cat2
1879    1876       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    1886 sh
7       1       1       1    1886 bash
20       7       1       1    1886 bash
1349      20       1       1    1886 python2
1350    1349       1       1    1886 time-helper
1351    1350       1       1    1886 bash
1826    1351       1       1    1886 bash
1882    1826       1       1    1886 python2
1883    1882       1       1    1886 time-helper
1884    1883       1       1    1886 bash
1885    1884    1885       1    1886 bash
1886    1885    1886       1    1886 ps
1887    1885    1886       1    1886 cat2
1888    1885    1886       1    1886 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   1891    1826       1       1       1 python2
   1892    1891       1       1       1 time-helper
   1893    1892       1       1       1 bash
   1894    1893       1       1       1 bash
   1895    1894       1       1       1 ps
   1896    1894       1       1       1 cat
   1897    1894       1       1       1 cat2

run_snippet bash bgpipe yes
[1] 1906
[1]+  Done                    ps -o $PS_COLS | cat | _tmp/cat2
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1903 sh
      7       1       1       1    1903 bash
     20       7       1       1    1903 bash
   1349      20       1       1    1903 python2
   1350    1349       1       1    1903 time-helper
   1351    1350       1       1    1903 bash
   1826    1351       1       1    1903 bash
   1900    1826       1       1    1903 python2
   1901    1900       1       1    1903 time-helper
   1902    1901       1       1    1903 bash
   1903    1902    1903       1    1903 bash
   1904    1903    1904       1    1903 ps
   1905    1903    1904       1    1903 cat
   1906    1903    1904       1    1903 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
1349      20       1       1       1 python2
1350    1349       1       1       1 time-helper
1351    1350       1       1       1 bash
1826    1351       1       1       1 bash
1909    1826       1       1       1 python2
1910    1909       1       1       1 time-helper
1911    1910       1       1       1 bash
1912    1911       1       1       1 bash
1913    1912       1       1       1 ps
1914    1912       1       1       1 cat2
1915    1912       1       1       1 bash

run_snippet bash bgpipe-lastpipe yes
[1] 1924
[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    1921 sh
7       1       1       1    1921 bash
20       7       1       1    1921 bash
1349      20       1       1    1921 python2
1350    1349       1       1    1921 time-helper
1351    1350       1       1    1921 bash
1826    1351       1       1    1921 bash
1918    1826       1       1    1921 python2
1919    1918       1       1    1921 time-helper
1920    1919       1       1    1921 bash
1921    1920    1921       1    1921 bash
1922    1921    1922       1    1921 ps
1923    1921    1922       1    1921 cat2
1924    1921    1922       1    1921 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   1927    1826       1       1       1 python2
   1928    1927       1       1       1 time-helper
   1929    1928       1       1       1 bash
   1930    1929       1       1       1 bash
   1931    1930       1       1       1 bash
   1932    1931       1       1       1 ps
ALIVE

run_snippet bash subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1939 sh
      7       1       1       1    1939 bash
     20       7       1       1    1939 bash
   1349      20       1       1    1939 python2
   1350    1349       1       1    1939 time-helper
   1351    1350       1       1    1939 bash
   1826    1351       1       1    1939 bash
   1935    1826       1       1    1939 python2
   1936    1935       1       1    1939 time-helper
   1937    1936       1       1    1939 bash
   1938    1937    1938       1    1939 bash
   1939    1938    1939       1    1939 bash
   1940    1939    1939       1    1939 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   1943    1826       1       1       1 python2
   1944    1943       1       1       1 time-helper
   1945    1944       1       1       1 bash
   1946    1945       1       1       1 bash
   1947    1946       1       1       1 ps

run_snippet bash csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1953 sh
      7       1       1       1    1953 bash
     20       7       1       1    1953 bash
   1349      20       1       1    1953 python2
   1350    1349       1       1    1953 time-helper
   1351    1350       1       1    1953 bash
   1826    1351       1       1    1953 bash
   1950    1826       1       1    1953 python2
   1951    1950       1       1    1953 time-helper
   1952    1951       1       1    1953 bash
   1953    1952    1953       1    1953 bash
   1954    1953    1953       1    1953 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   1957    1826       1       1       1 python2
   1958    1957       1       1       1 time-helper
   1959    1958       1       1       1 bash
   1960    1959       1       1       1 bash
   1961    1960       1       1       1 bash
   1962    1960       1       1       1 cat
   1963    1961       1       1       1 ps

run_snippet bash psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1971 sh
      7       1       1       1    1971 bash
     20       7       1       1    1971 bash
   1349      20       1       1    1971 python2
   1350    1349       1       1    1971 time-helper
   1351    1350       1       1    1971 bash
   1826    1351       1       1    1971 bash
   1966    1826       1       1    1971 python2
   1967    1966       1       1    1971 time-helper
   1968    1967       1       1    1971 bash
   1969    1968    1969       1    1971 bash
   1970    1969    1969       1    1971 bash
   1971    1969    1971       1    1971 cat
   1972    1970    1969       1    1971 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   1975    1826       1       1       1 python2
   1976    1975       1       1       1 time-helper
   1977    1976       1       1       1 bash
   1978    1977       1       1       1 dash
   1979    1978       1       1       1 ps

run_snippet dash fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1986 sh
      7       1       1       1    1986 bash
     20       7       1       1    1986 bash
   1349      20       1       1    1986 python2
   1350    1349       1       1    1986 time-helper
   1351    1350       1       1    1986 bash
   1826    1351       1       1    1986 bash
   1982    1826       1       1    1986 python2
   1983    1982       1       1    1986 time-helper
   1984    1983       1       1    1986 bash
   1985    1984    1985       1    1986 dash
   1986    1985    1986       1    1986 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   1989    1826       1       1       1 python2
   1990    1989       1       1       1 time-helper
   1991    1990       1       1       1 bash
   1992    1991       1       1       1 dash
   1993    1992       1       1       1 ps

run_snippet dash bgproc yes
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1999 sh
      7       1       1       1    1999 bash
     20       7       1       1    1999 bash
   1349      20       1       1    1999 python2
   1350    1349       1       1    1999 time-helper
   1351    1350       1       1    1999 bash
   1826    1351       1       1    1999 bash
   1996    1826       1       1    1999 python2
   1997    1996       1       1    1999 time-helper
   1998    1997       1       1    1999 bash
   1999    1998    1999       1    1999 dash
   2000    1999    2000       1    1999 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2003    1826       1       1       1 python2
   2004    2003       1       1       1 time-helper
   2005    2004       1       1       1 bash
   2006    2005       1       1       1 dash
   2007    2006       1       1       1 ps
   2008    2006       1       1       1 cat
   2009    2006       1       1       1 cat2

run_snippet dash fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2016 sh
      7       1       1       1    2016 bash
     20       7       1       1    2016 bash
   1349      20       1       1    2016 python2
   1350    1349       1       1    2016 time-helper
   1351    1350       1       1    2016 bash
   1826    1351       1       1    2016 bash
   2012    1826       1       1    2016 python2
   2013    2012       1       1    2016 time-helper
   2014    2013       1       1    2016 bash
   2015    2014    2015       1    2016 dash
   2016    2015    2016       1    2016 ps
   2017    2015    2016       1    2016 cat
   2018    2015    2016       1    2016 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
1349      20       1       1       1 python2
1350    1349       1       1       1 time-helper
1351    1350       1       1       1 bash
1826    1351       1       1       1 bash
2021    1826       1       1       1 python2
2022    2021       1       1       1 time-helper
2023    2022       1       1       1 bash
2024    2023       1       1       1 dash
2025    2024       1       1       1 ps
2026    2024       1       1       1 cat2
2027    2024       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    2034 sh
7       1       1       1    2034 bash
20       7       1       1    2034 bash
1349      20       1       1    2034 python2
1350    1349       1       1    2034 time-helper
1351    1350       1       1    2034 bash
1826    1351       1       1    2034 bash
2030    1826       1       1    2034 python2
2031    2030       1       1    2034 time-helper
2032    2031       1       1    2034 bash
2033    2032    2033       1    2034 dash
2034    2033    2034       1    2034 ps
2035    2033    2034       1    2034 cat2
2036    2033    2034       1    2034 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2039    1826       1       1       1 python2
   2040    2039       1       1       1 time-helper
   2041    2040       1       1       1 bash
   2042    2041       1       1       1 dash
   2043    2042       1       1       1 ps
   2044    2042       1       1       1 cat
   2045    2042       1       1       1 cat2

run_snippet dash bgpipe yes
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2051 sh
      7       1       1       1    2051 bash
     20       7       1       1    2051 bash
   1349      20       1       1    2051 python2
   1350    1349       1       1    2051 time-helper
   1351    1350       1       1    2051 bash
   1826    1351       1       1    2051 bash
   2048    1826       1       1    2051 python2
   2049    2048       1       1    2051 time-helper
   2050    2049       1       1    2051 bash
   2051    2050    2051       1    2051 dash
   2052    2051    2052       1    2051 ps
   2053    2051    2052       1    2051 cat
   2054    2051    2052       1    2051 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
1349      20       1       1       1 python2
1350    1349       1       1       1 time-helper
1351    1350       1       1       1 bash
1826    1351       1       1       1 bash
2057    1826       1       1       1 python2
2058    2057       1       1       1 time-helper
2059    2058       1       1       1 bash
2060    2059       1       1       1 dash
2061    2060       1       1       1 ps
2062    2060       1       1       1 cat2
2063    2060       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    2069 sh
7       1       1       1    2069 bash
20       7       1       1    2069 bash
1349      20       1       1    2069 python2
1350    1349       1       1    2069 time-helper
1351    1350       1       1    2069 bash
1826    1351       1       1    2069 bash
2066    1826       1       1    2069 python2
2067    2066       1       1    2069 time-helper
2068    2067       1       1    2069 bash
2069    2068    2069       1    2069 dash
2070    2069    2070       1    2069 ps
2071    2069    2070       1    2069 cat2
2072    2069    2070       1    2069 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2075    1826       1       1       1 python2
   2076    2075       1       1       1 time-helper
   2077    2076       1       1       1 bash
   2078    2077       1       1       1 dash
   2079    2078       1       1       1 dash
   2080    2079       1       1       1 ps
ALIVE

run_snippet dash subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2087 sh
      7       1       1       1    2087 bash
     20       7       1       1    2087 bash
   1349      20       1       1    2087 python2
   1350    1349       1       1    2087 time-helper
   1351    1350       1       1    2087 bash
   1826    1351       1       1    2087 bash
   2083    1826       1       1    2087 python2
   2084    2083       1       1    2087 time-helper
   2085    2084       1       1    2087 bash
   2086    2085    2086       1    2087 dash
   2087    2086    2087       1    2087 dash
   2088    2087    2087       1    2087 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2091    1826       1       1       1 python2
   2092    2091       1       1       1 time-helper
   2093    2092       1       1       1 bash
   2094    2093       1       1       1 dash
   2095    2094       1       1       1 ps

run_snippet dash csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2101 sh
      7       1       1       1    2101 bash
     20       7       1       1    2101 bash
   1349      20       1       1    2101 python2
   1350    1349       1       1    2101 time-helper
   1351    1350       1       1    2101 bash
   1826    1351       1       1    2101 bash
   2098    1826       1       1    2101 python2
   2099    2098       1       1    2101 time-helper
   2100    2099       1       1    2101 bash
   2101    2100    2101       1    2101 dash
   2102    2101    2101       1    2101 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2117    1826       1       1       1 python2
   2118    2117       1       1       1 time-helper
   2119    2118       1       1       1 bash
   2120    2119       1       1       1 mksh
   2121    2120       1       1       1 ps

run_snippet mksh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2128 sh
      7       1       1       1    2128 bash
     20       7       1       1    2128 bash
   1349      20       1       1    2128 python2
   1350    1349       1       1    2128 time-helper
   1351    1350       1       1    2128 bash
   1826    1351       1       1    2128 bash
   2124    1826       1       1    2128 python2
   2125    2124       1       1    2128 time-helper
   2126    2125       1       1    2128 bash
   2127    2126    2127       1    2128 mksh
   2128    2127    2128       1    2128 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2131    1826       1       1       1 python2
   2132    2131       1       1       1 time-helper
   2133    2132       1       1       1 bash
   2134    2133       1       1       1 mksh
   2135    2134       1       1       1 ps

run_snippet mksh bgproc yes
[1] 2142
[1] + Done                 \ps -o $PS_COLS 
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2141 sh
      7       1       1       1    2141 bash
     20       7       1       1    2141 bash
   1349      20       1       1    2141 python2
   1350    1349       1       1    2141 time-helper
   1351    1350       1       1    2141 bash
   1826    1351       1       1    2141 bash
   2138    1826       1       1    2141 python2
   2139    2138       1       1    2141 time-helper
   2140    2139       1       1    2141 bash
   2141    2140    2141       1    2141 mksh
   2142    2141    2142       1    2141 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2145    1826       1       1       1 python2
   2146    2145       1       1       1 time-helper
   2147    2146       1       1       1 bash
   2148    2147       1       1       1 mksh
   2149    2148       1       1       1 ps
   2150    2148       1       1       1 mksh
   2151    2148       1       1       1 cat2

run_snippet mksh fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2158 sh
      7       1       1       1    2158 bash
     20       7       1       1    2158 bash
   1349      20       1       1    2158 python2
   1350    1349       1       1    2158 time-helper
   1351    1350       1       1    2158 bash
   1826    1351       1       1    2158 bash
   2154    1826       1       1    2158 python2
   2155    2154       1       1    2158 time-helper
   2156    2155       1       1    2158 bash
   2157    2156    2157       1    2158 mksh
   2158    2157    2158       1    2158 ps
   2159    2157    2158       1    2158 mksh
   2160    2157    2158       1    2158 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
1349      20       1       1       1 python2
1350    1349       1       1       1 time-helper
1351    1350       1       1       1 bash
1826    1351       1       1       1 bash
2163    1826       1       1       1 python2
2164    2163       1       1       1 time-helper
2165    2164       1       1       1 bash
2166    2165       1       1       1 mksh
2167    2166       1       1       1 ps
2168    2166       1       1       1 cat2
2169    2166       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    2176 sh
7       1       1       1    2176 bash
20       7       1       1    2176 bash
1349      20       1       1    2176 python2
1350    1349       1       1    2176 time-helper
1351    1350       1       1    2176 bash
1826    1351       1       1    2176 bash
2172    1826       1       1    2176 python2
2173    2172       1       1    2176 time-helper
2174    2173       1       1    2176 bash
2175    2174    2175       1    2176 mksh
2176    2175    2176       1    2176 ps
2177    2175    2176       1    2176 cat2
2178    2175    2176       1    2176 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2181    1826       1       1       1 python2
   2182    2181       1       1       1 time-helper
   2183    2182       1       1       1 bash
   2184    2183       1       1       1 mksh
   2185    2184       1       1       1 ps
   2186    2184       1       1       1 mksh
   2187    2184       1       1       1 cat2

run_snippet mksh bgpipe yes
[1] 2194 2195 2196
[1] + Done                 \ps -o $PS_COLS | \cat | _tmp/cat2 
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2193 sh
      7       1       1       1    2193 bash
     20       7       1       1    2193 bash
   1349      20       1       1    2193 python2
   1350    1349       1       1    2193 time-helper
   1351    1350       1       1    2193 bash
   1826    1351       1       1    2193 bash
   2190    1826       1       1    2193 python2
   2191    2190       1       1    2193 time-helper
   2192    2191       1       1    2193 bash
   2193    2192    2193       1    2193 mksh
   2194    2193    2194       1    2193 ps
   2195    2193    2194       1    2193 mksh
   2196    2193    2194       1    2193 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
1349      20       1       1       1 python2
1350    1349       1       1       1 time-helper
1351    1350       1       1       1 bash
1826    1351       1       1       1 bash
2199    1826       1       1       1 python2
2200    2199       1       1       1 time-helper
2201    2200       1       1       1 bash
2202    2201       1       1       1 mksh
2203    2202       1       1       1 ps
2204    2202       1       1       1 cat2
2205    2202       1       1       1 mksh

run_snippet mksh bgpipe-lastpipe yes
[1] 2212 2213 2214
[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    2211 sh
7       1       1       1    2211 bash
20       7       1       1    2211 bash
1349      20       1       1    2211 python2
1350    1349       1       1    2211 time-helper
1351    1350       1       1    2211 bash
1826    1351       1       1    2211 bash
2208    1826       1       1    2211 python2
2209    2208       1       1    2211 time-helper
2210    2209       1       1    2211 bash
2211    2210    2211       1    2211 mksh
2212    2211    2212       1    2211 ps
2213    2211    2212       1    2211 cat2
2214    2211    2212       1    2211 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2217    1826       1       1       1 python2
   2218    2217       1       1       1 time-helper
   2219    2218       1       1       1 bash
   2220    2219       1       1       1 mksh
   2221    2220       1       1       1 mksh
   2222    2221       1       1       1 ps
ALIVE

run_snippet mksh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2229 sh
      7       1       1       1    2229 bash
     20       7       1       1    2229 bash
   1349      20       1       1    2229 python2
   1350    1349       1       1    2229 time-helper
   1351    1350       1       1    2229 bash
   1826    1351       1       1    2229 bash
   2225    1826       1       1    2229 python2
   2226    2225       1       1    2229 time-helper
   2227    2226       1       1    2229 bash
   2228    2227    2228       1    2229 mksh
   2229    2228    2229       1    2229 mksh
   2230    2229    2229       1    2229 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2233    1826       1       1       1 python2
   2234    2233       1       1       1 time-helper
   2235    2234       1       1       1 bash
   2236    2235       1       1       1 mksh
   2237    2236       1       1       1 ps

run_snippet mksh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2243 sh
      7       1       1       1    2243 bash
     20       7       1       1    2243 bash
   1349      20       1       1    2243 python2
   1350    1349       1       1    2243 time-helper
   1351    1350       1       1    2243 bash
   1826    1351       1       1    2243 bash
   2240    1826       1       1    2243 python2
   2241    2240       1       1    2243 time-helper
   2242    2241       1       1    2243 bash
   2243    2242    2243       1    2243 mksh
   2244    2243    2243       1    2243 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2259    1826       1       1       1 python2
   2260    2259       1       1       1 time-helper
   2261    2260       1       1       1 bash
   2262    2261       1       1       1 zsh
   2263    2262       1       1       1 ps

run_snippet zsh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2271 sh
      7       1       1       1    2271 bash
     20       7       1       1    2271 bash
   1349      20       1       1    2271 python2
   1350    1349       1       1    2271 time-helper
   1351    1350       1       1    2271 bash
   1826    1351       1       1    2271 bash
   2266    1826       1       1    2271 python2
   2267    2266       1       1    2271 time-helper
   2268    2267       1       1    2271 bash
   2269    2268    2269       1    2271 zsh
   2271    2269    2271       1    2271 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2274    1826       1       1       1 python2
   2275    2274       1       1       1 time-helper
   2276    2275       1       1       1 bash
   2277    2276       1       1       1 zsh
   2278    2277       1       1       1 ps

run_snippet zsh bgproc yes
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2284 sh
      7       1       1       1    2284 bash
     20       7       1       1    2284 bash
   1349      20       1       1    2284 python2
   1350    1349       1       1    2284 time-helper
   1351    1350       1       1    2284 bash
   1826    1351       1       1    2284 bash
   2281    1826       1       1    2284 python2
   2282    2281       1       1    2284 time-helper
   2283    2282       1       1    2284 bash
   2284    2283    2284       1    2284 zsh
   2286    2284    2286       1    2284 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2289    1826       1       1       1 python2
   2290    2289       1       1       1 time-helper
   2291    2290       1       1       1 bash
   2292    2291       1       1       1 zsh
   2293    2292       1       1       1 ps
   2294    2292       1       1       1 cat
   2295    2292       1       1       1 cat2

run_snippet zsh fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2303 sh
      7       1       1       1    2303 bash
     20       7       1       1    2303 bash
   1349      20       1       1    2303 python2
   1350    1349       1       1    2303 time-helper
   1351    1350       1       1    2303 bash
   1826    1351       1       1    2303 bash
   2298    1826       1       1    2303 python2
   2299    2298       1       1    2303 time-helper
   2300    2299       1       1    2303 bash
   2301    2300    2301       1    2303 zsh
   2303    2301    2303       1    2303 ps
   2304    2301    2303       1    2303 cat
   2305    2301    2303       1    2303 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
1349      20       1       1       1 python2
1350    1349       1       1       1 time-helper
1351    1350       1       1       1 bash
1826    1351       1       1       1 bash
2308    1826       1       1       1 python2
2309    2308       1       1       1 time-helper
2310    2309       1       1       1 bash
2311    2310       1       1       1 zsh
2312    2311       1       1       1 ps
2313    2311       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    2321 sh
7       1       1       1    2321 bash
20       7       1       1    2321 bash
1349      20       1       1    2321 python2
1350    1349       1       1    2321 time-helper
1351    1350       1       1    2321 bash
1826    1351       1       1    2321 bash
2316    1826       1       1    2321 python2
2317    2316       1       1    2321 time-helper
2318    2317       1       1    2321 bash
2319    2318    2319       1    2321 zsh
2321    2319    2321       1    2321 ps
2322    2319    2321       1    2321 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2325    1826       1       1       1 python2
   2326    2325       1       1       1 time-helper
   2327    2326       1       1       1 bash
   2328    2327       1       1       1 zsh
   2329    2328       1       1       1 ps
   2330    2328       1       1       1 cat
   2331    2328       1       1       1 cat2

run_snippet zsh bgpipe yes
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2337 sh
      7       1       1       1    2337 bash
     20       7       1       1    2337 bash
   1349      20       1       1    2337 python2
   1350    1349       1       1    2337 time-helper
   1351    1350       1       1    2337 bash
   1826    1351       1       1    2337 bash
   2334    1826       1       1    2337 python2
   2335    2334       1       1    2337 time-helper
   2336    2335       1       1    2337 bash
   2337    2336    2337       1    2337 zsh
   2339    2337    2339       1    2337 ps
   2340    2337    2339       1    2337 cat
   2341    2337    2339       1    2337 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
1349      20       1       1       1 python2
1350    1349       1       1       1 time-helper
1351    1350       1       1       1 bash
1826    1351       1       1       1 bash
2344    1826       1       1       1 python2
2345    2344       1       1       1 time-helper
2346    2345       1       1       1 bash
2347    2346       1       1       1 zsh
2348    2347       1       1       1 ps
2349    2347       1       1       1 cat2
2350    2347       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    2356 sh
7       1       1       1    2356 bash
20       7       1       1    2356 bash
1349      20       1       1    2356 python2
1350    1349       1       1    2356 time-helper
1351    1350       1       1    2356 bash
1826    1351       1       1    2356 bash
2353    1826       1       1    2356 python2
2354    2353       1       1    2356 time-helper
2355    2354       1       1    2356 bash
2356    2355    2356       1    2356 zsh
2358    2356    2358       1    2356 ps
2359    2356    2358       1    2356 cat2
2360    2356    2358       1    2356 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2363    1826       1       1       1 python2
   2364    2363       1       1       1 time-helper
   2365    2364       1       1       1 bash
   2366    2365       1       1       1 zsh
   2367    2366       1       1       1 zsh
   2368    2367       1       1       1 ps
ALIVE

run_snippet zsh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2376 sh
      7       1       1       1    2376 bash
     20       7       1       1    2376 bash
   1349      20       1       1    2376 python2
   1350    1349       1       1    2376 time-helper
   1351    1350       1       1    2376 bash
   1826    1351       1       1    2376 bash
   2371    1826       1       1    2376 python2
   2372    2371       1       1    2376 time-helper
   2373    2372       1       1    2376 bash
   2374    2373    2374       1    2376 zsh
   2376    2374    2376       1    2376 zsh
   2377    2376    2376       1    2376 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2380    1826       1       1       1 python2
   2381    2380       1       1       1 time-helper
   2382    2381       1       1       1 bash
   2383    2382       1       1       1 zsh
   2384    2383       1       1       1 ps

run_snippet zsh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2390 sh
      7       1       1       1    2390 bash
     20       7       1       1    2390 bash
   1349      20       1       1    2390 python2
   1350    1349       1       1    2390 time-helper
   1351    1350       1       1    2390 bash
   1826    1351       1       1    2390 bash
   2387    1826       1       1    2390 python2
   2388    2387       1       1    2390 time-helper
   2389    2388       1       1    2390 bash
   2390    2389    2390       1    2390 zsh
   2392    2390    2390       1    2390 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2395    1826       1       1       1 python2
   2396    2395       1       1       1 time-helper
   2397    2396       1       1       1 bash
   2398    2397       1       1       1 zsh
   2399    2398       1       1       1 ps
   2400    2398       1       1       1 cat

run_snippet zsh psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2409 sh
      7       1       1       1    2409 bash
     20       7       1       1    2409 bash
   1349      20       1       1    2409 python2
   1350    1349       1       1    2409 time-helper
   1351    1350       1       1    2409 bash
   1826    1351       1       1    2409 bash
   2403    1826       1       1    2409 python2
   2404    2403       1       1    2409 time-helper
   2405    2404       1       1    2409 bash
   2406    2405    2406       1    2409 zsh
   2408    2406    2408       1    2409 ps
   2409    2406    2409       1    2409 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2412    1826       1       1       1 python2
   2413    2412       1       1       1 time-helper
   2414    2413       1       1       1 bash
   2415    2414       1       1       1 python2
   2418    2415       1       1       1 ps

run_snippet bin/osh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2427 sh
      7       1       1       1    2427 bash
     20       7       1       1    2427 bash
   1349      20       1       1    2427 python2
   1350    1349       1       1    2427 time-helper
   1351    1350       1       1    2427 bash
   1826    1351       1       1    2427 bash
   2421    1826       1       1    2427 python2
   2422    2421       1       1    2427 time-helper
   2423    2422       1       1    2427 bash
   2424    2423    2424       1    2427 python2
   2427    2424    2427       1    2427 ps

run_snippet bin/osh bgproc -
[%1] PID 2436 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2430    1826       1       1       1 python2
   2431    2430       1       1       1 time-helper
   2432    2431       1       1       1 bash
   2433    2432       1       1       1 python2
   2436    2433       1       1       1 ps

run_snippet bin/osh bgproc yes
[%1] PID 2445 Started
[%1] PID 2445 Done
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2442 sh
      7       1       1       1    2442 bash
     20       7       1       1    2442 bash
   1349      20       1       1    2442 python2
   1350    1349       1       1    2442 time-helper
   1351    1350       1       1    2442 bash
   1826    1351       1       1    2442 bash
   2439    1826       1       1    2442 python2
   2440    2439       1       1    2442 time-helper
   2441    2440       1       1    2442 bash
   2442    2441    2442       1    2442 python2
   2445    2442    2445       1    2442 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2448    1826       1       1       1 python2
   2449    2448       1       1       1 time-helper
   2450    2449       1       1       1 bash
   2451    2450       1       1       1 python2
   2454    2451       1       1       1 ps
   2455    2451       1       1       1 cat
   2456    2451       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    2465 sh
      7       1       1       1    2465 bash
     20       7       1       1    2465 bash
   1349      20       1       1    2465 python2
   1350    1349       1       1    2465 time-helper
   1351    1350       1       1    2465 bash
   1826    1351       1       1    2465 bash
   2459    1826       1       1    2465 python2
   2460    2459       1       1    2465 time-helper
   2461    2460       1       1    2465 bash
   2462    2461    2462       1    2465 python2
   2465    2462    2465       1    2465 ps
   2466    2462    2465       1    2465 cat
   2467    2462    2465       1    2465 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
1349      20       1       1       1 python2
1350    1349       1       1       1 time-helper
1351    1350       1       1       1 bash
1826    1351       1       1       1 bash
2470    1826       1       1       1 python2
2471    2470       1       1       1 time-helper
2472    2471       1       1       1 bash
2473    2472       1       1       1 python2
2476    2473       1       1       1 ps
2477    2473       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    2486 sh
7       1       1       1    2486 bash
20       7       1       1    2486 bash
1349      20       1       1    2486 python2
1350    1349       1       1    2486 time-helper
1351    1350       1       1    2486 bash
1826    1351       1       1    2486 bash
2480    1826       1       1    2486 python2
2481    2480       1       1    2486 time-helper
2482    2481       1       1    2486 bash
2483    2482    2483       1    2486 python2
2486    2483    2486       1    2486 ps
2487    2483    2486       1    2486 cat2

run_snippet bin/osh bgpipe -
[%1] PGID 2496 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2490    1826       1       1       1 python2
   2491    2490       1       1       1 time-helper
   2492    2491       1       1       1 bash
   2493    2492       1       1       1 python2
   2496    2493       1       1       1 ps
   2497    2493       1       1       1 cat
   2498    2493       1       1       1 cat2

run_snippet bin/osh bgpipe yes
[%1] PID 2509 Started
[%1] PGID 2507 Done
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2504 sh
      7       1       1       1    2504 bash
     20       7       1       1    2504 bash
   1349      20       1       1    2504 python2
   1350    1349       1       1    2504 time-helper
   1351    1350       1       1    2504 bash
   1826    1351       1       1    2504 bash
   2501    1826       1       1    2504 python2
   2502    2501       1       1    2504 time-helper
   2503    2502       1       1    2504 bash
   2504    2503    2504       1    2504 python2
   2507    2504    2507       1    2504 ps
   2508    2504    2507       1    2504 cat
   2509    2504    2507       1    2504 cat2

run_snippet bin/osh bgpipe-lastpipe -
[%1] PGID 2518 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
1349      20       1       1       1 python2
1350    1349       1       1       1 time-helper
1351    1350       1       1       1 bash
1826    1351       1       1       1 bash
2512    1826       1       1       1 python2
2513    2512       1       1       1 time-helper
2514    2513       1       1       1 bash
2515    2514       1       1       1 python2
2518    2515       1       1       1 ps
2519    2515       1       1       1 cat2
2520    2515       1       1       1 python2

run_snippet bin/osh bgpipe-lastpipe yes
[%1] PID 2531 Started
[%1] PGID 2529 Done
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    2526 sh
7       1       1       1    2526 bash
20       7       1       1    2526 bash
1349      20       1       1    2526 python2
1350    1349       1       1    2526 time-helper
1351    1350       1       1    2526 bash
1826    1351       1       1    2526 bash
2523    1826       1       1    2526 python2
2524    2523       1       1    2526 time-helper
2525    2524       1       1    2526 bash
2526    2525    2526       1    2526 python2
2529    2526    2529       1    2526 ps
2530    2526    2529       1    2526 cat2
2531    2526    2529       1    2526 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2534    1826       1       1       1 python2
   2535    2534       1       1       1 time-helper
   2536    2535       1       1       1 bash
   2537    2536       1       1       1 python2
   2540    2537       1       1       1 python2
   2541    2540       1       1       1 ps
ALIVE

run_snippet bin/osh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2550 sh
      7       1       1       1    2550 bash
     20       7       1       1    2550 bash
   1349      20       1       1    2550 python2
   1350    1349       1       1    2550 time-helper
   1351    1350       1       1    2550 bash
   1826    1351       1       1    2550 bash
   2544    1826       1       1    2550 python2
   2545    2544       1       1    2550 time-helper
   2546    2545       1       1    2550 bash
   2547    2546    2547       1    2550 python2
   2550    2547    2550       1    2550 python2
   2551    2550    2550       1    2550 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2554    1826       1       1       1 python2
   2555    2554       1       1       1 time-helper
   2556    2555       1       1       1 bash
   2557    2556       1       1       1 python2
   2560    2557       1       1       1 ps

run_snippet bin/osh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2566 sh
      7       1       1       1    2566 bash
     20       7       1       1    2566 bash
   1349      20       1       1    2566 python2
   1350    1349       1       1    2566 time-helper
   1351    1350       1       1    2566 bash
   1826    1351       1       1    2566 bash
   2563    1826       1       1    2566 python2
   2564    2563       1       1    2566 time-helper
   2565    2564       1       1    2566 bash
   2566    2565    2566       1    2566 python2
   2569    2566    2566       1    2566 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2572    1826       1       1       1 python2
   2573    2572       1       1       1 time-helper
   2574    2573       1       1       1 bash
   2575    2574       1       1       1 python2
   2578    2575       1       1       1 ps
   2579    2575       1       1       1 cat

run_snippet bin/osh psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2589 sh
      7       1       1       1    2589 bash
     20       7       1       1    2589 bash
   1349      20       1       1    2589 python2
   1350    1349       1       1    2589 time-helper
   1351    1350       1       1    2589 bash
   1826    1351       1       1    2589 bash
   2582    1826       1       1    2589 python2
   2583    2582       1       1    2589 time-helper
   2584    2583       1       1    2589 bash
   2585    2584    2585       1    2589 python2
   2588    2585    2588       1    2589 ps
   2589    2585    2589       1    2589 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2592    1826       1       1       1 python2
   2593    2592       1       1       1 time-helper
   2594    2593       1       1       1 bash
   2595    2594       1       1       1 osh
   2596    2595       1       1       1 ps

run_snippet _bin/cxx-dbg/osh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2603 sh
      7       1       1       1    2603 bash
     20       7       1       1    2603 bash
   1349      20       1       1    2603 python2
   1350    1349       1       1    2603 time-helper
   1351    1350       1       1    2603 bash
   1826    1351       1       1    2603 bash
   2599    1826       1       1    2603 python2
   2600    2599       1       1    2603 time-helper
   2601    2600       1       1    2603 bash
   2602    2601    2602       1    2603 osh
   2603    2602    2603       1    2603 ps

run_snippet _bin/cxx-dbg/osh bgproc -
[%1] PID 2610 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2606    1826       1       1       1 python2
   2607    2606       1       1       1 time-helper
   2608    2607       1       1       1 bash
   2609    2608       1       1       1 osh
   2610    2609       1       1       1 ps

run_snippet _bin/cxx-dbg/osh bgproc yes
[%1] PID 2617 Started
[%1] PID 2617 Done
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2616 sh
      7       1       1       1    2616 bash
     20       7       1       1    2616 bash
   1349      20       1       1    2616 python2
   1350    1349       1       1    2616 time-helper
   1351    1350       1       1    2616 bash
   1826    1351       1       1    2616 bash
   2613    1826       1       1    2616 python2
   2614    2613       1       1    2616 time-helper
   2615    2614       1       1    2616 bash
   2616    2615    2616       1    2616 osh
   2617    2616    2617       1    2616 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2620    1826       1       1       1 python2
   2621    2620       1       1       1 time-helper
   2622    2621       1       1       1 bash
   2623    2622       1       1       1 osh
   2624    2623       1       1       1 ps
   2625    2623       1       1       1 cat
   2626    2623       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    2633 sh
      7       1       1       1    2633 bash
     20       7       1       1    2633 bash
   1349      20       1       1    2633 python2
   1350    1349       1       1    2633 time-helper
   1351    1350       1       1    2633 bash
   1826    1351       1       1    2633 bash
   2629    1826       1       1    2633 python2
   2630    2629       1       1    2633 time-helper
   2631    2630       1       1    2633 bash
   2632    2631    2632       1    2633 osh
   2633    2632    2633       1    2633 ps
   2634    2632    2633       1    2633 cat
   2635    2632    2633       1    2633 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
1349      20       1       1       1 python2
1350    1349       1       1       1 time-helper
1351    1350       1       1       1 bash
1826    1351       1       1       1 bash
2638    1826       1       1       1 python2
2639    2638       1       1       1 time-helper
2640    2639       1       1       1 bash
2641    2640       1       1       1 osh
2642    2641       1       1       1 ps
2643    2641       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    2650 sh
7       1       1       1    2650 bash
20       7       1       1    2650 bash
1349      20       1       1    2650 python2
1350    1349       1       1    2650 time-helper
1351    1350       1       1    2650 bash
1826    1351       1       1    2650 bash
2646    1826       1       1    2650 python2
2647    2646       1       1    2650 time-helper
2648    2647       1       1    2650 bash
2649    2648    2649       1    2650 osh
2650    2649    2650       1    2650 ps
2651    2649    2650       1    2650 cat2

run_snippet _bin/cxx-dbg/osh bgpipe -
[%1] PGID 2658 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2654    1826       1       1       1 python2
   2655    2654       1       1       1 time-helper
   2656    2655       1       1       1 bash
   2657    2656       1       1       1 osh
   2658    2657       1       1       1 ps
   2659    2657       1       1       1 cat
   2660    2657       1       1       1 cat2

run_snippet _bin/cxx-dbg/osh bgpipe yes
[%1] PID 2669 Started
[%1] PGID 2667 Done
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2666 sh
      7       1       1       1    2666 bash
     20       7       1       1    2666 bash
   1349      20       1       1    2666 python2
   1350    1349       1       1    2666 time-helper
   1351    1350       1       1    2666 bash
   1826    1351       1       1    2666 bash
   2663    1826       1       1    2666 python2
   2664    2663       1       1    2666 time-helper
   2665    2664       1       1    2666 bash
   2666    2665    2666       1    2666 osh
   2667    2666    2667       1    2666 ps
   2668    2666    2667       1    2666 cat
   2669    2666    2667       1    2666 cat2

run_snippet _bin/cxx-dbg/osh bgpipe-lastpipe -
[%1] PGID 2676 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
1349      20       1       1       1 python2
1350    1349       1       1       1 time-helper
1351    1350       1       1       1 bash
1826    1351       1       1       1 bash
2672    1826       1       1       1 python2
2673    2672       1       1       1 time-helper
2674    2673       1       1       1 bash
2675    2674       1       1       1 osh
2676    2675       1       1       1 ps
2677    2675       1       1       1 cat2
2678    2675       1       1       1 osh

run_snippet _bin/cxx-dbg/osh bgpipe-lastpipe yes
[%1] PID 2687 Started
[%1] PGID 2685 Done
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    2684 sh
7       1       1       1    2684 bash
20       7       1       1    2684 bash
1349      20       1       1    2684 python2
1350    1349       1       1    2684 time-helper
1351    1350       1       1    2684 bash
1826    1351       1       1    2684 bash
2681    1826       1       1    2684 python2
2682    2681       1       1    2684 time-helper
2683    2682       1       1    2684 bash
2684    2683    2684       1    2684 osh
2685    2684    2685       1    2684 ps
2686    2684    2685       1    2684 cat2
2687    2684    2685       1    2684 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2690    1826       1       1       1 python2
   2691    2690       1       1       1 time-helper
   2692    2691       1       1       1 bash
   2693    2692       1       1       1 osh
   2694    2693       1       1       1 osh
   2695    2694       1       1       1 ps
ALIVE

run_snippet _bin/cxx-dbg/osh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2702 sh
      7       1       1       1    2702 bash
     20       7       1       1    2702 bash
   1349      20       1       1    2702 python2
   1350    1349       1       1    2702 time-helper
   1351    1350       1       1    2702 bash
   1826    1351       1       1    2702 bash
   2698    1826       1       1    2702 python2
   2699    2698       1       1    2702 time-helper
   2700    2699       1       1    2702 bash
   2701    2700    2701       1    2702 osh
   2702    2701    2702       1    2702 osh
   2703    2702    2702       1    2702 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2706    1826       1       1       1 python2
   2707    2706       1       1       1 time-helper
   2708    2707       1       1       1 bash
   2709    2708       1       1       1 osh
   2710    2709       1       1       1 ps

run_snippet _bin/cxx-dbg/osh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2716 sh
      7       1       1       1    2716 bash
     20       7       1       1    2716 bash
   1349      20       1       1    2716 python2
   1350    1349       1       1    2716 time-helper
   1351    1350       1       1    2716 bash
   1826    1351       1       1    2716 bash
   2713    1826       1       1    2716 python2
   2714    2713       1       1    2716 time-helper
   2715    2714       1       1    2716 bash
   2716    2715    2716       1    2716 osh
   2717    2716    2716       1    2716 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
   1349      20       1       1       1 python2
   1350    1349       1       1       1 time-helper
   1351    1350       1       1       1 bash
   1826    1351       1       1       1 bash
   2720    1826       1       1       1 python2
   2721    2720       1       1       1 time-helper
   2722    2721       1       1       1 bash
   2723    2722       1       1       1 osh
   2724    2723       1       1       1 ps
   2725    2723       1       1       1 cat

run_snippet _bin/cxx-dbg/osh psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2733 sh
      7       1       1       1    2733 bash
     20       7       1       1    2733 bash
   1349      20       1       1    2733 python2
   1350    1349       1       1    2733 time-helper
   1351    1350       1       1    2733 bash
   1826    1351       1       1    2733 bash
   2728    1826       1       1    2733 python2
   2729    2728       1       1    2733 time-helper
   2730    2729       1       1    2733 bash
   2731    2730    2731       1    2733 osh
   2732    2731    2732       1    2733 ps
   2733    2731    2733       1    2733 cat

Wrote _tmp/process-table/index.html