'_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/value.asdl _gen/core/value.asdl _gen/core/value.asdl_debug.py
[11/66] make-pystub _bin/shwrap/signal_gen frontend/signal_gen.py frontend/signal_def.py
[12/66] asdl_main cpp  display/pretty.asdl _gen/display/pretty.asdl _gen/display/pretty.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  data_lang/nil8.asdl _gen/data_lang/nil8.asdl _gen/data_lang/nil8.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] signal_gen cpp _gen/frontend/signal
[19/66] consts_gen cpp-consts _gen/frontend/consts
[20/66] make-pystub _bin/shwrap/mycpp_main mycpp/mycpp_main.py mycpp/const_pass.py mycpp/control_flow_pass.py mycpp/conversion_pass.py mycpp/cppgen_pass.py mycpp/crash.py mycpp/format_strings.py mycpp/pass_state.py mycpp/translate.py mycpp/util.py mycpp/visitor.py
[21/66] asdl_main cpp --no-pretty-print-methods frontend/types.asdl _gen/frontend/types.asdl _gen/frontend/types.asdl_debug.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] 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] arith-parse-gen > _gen/osh/arith_parse.cc
[26/66] grammar_gen cpp ysh/grammar.pgen2 _gen/ysh
[27/66] asdl_main cpp --abbrev-module=frontend.syntax_abbrev frontend/syntax.asdl _gen/frontend/syntax.asdl _gen/frontend/syntax.asdl_debug.py
[28/66] cxx dbg '' mycpp/bump_leak_heap.cc _build/obj/cxx-dbg/mycpp/bump_leak_heap.o
[29/66] cxx dbg '' _gen/frontend/id_kind.asdl.cc _build/obj/cxx-dbg/_gen/frontend/id_kind.asdl.o
[30/66] cxx dbg '' _gen/display/pretty.asdl.cc _build/obj/cxx-dbg/_gen/display/pretty.asdl.o
[31/66] cxx dbg '' mycpp/gc_builtins.cc _build/obj/cxx-dbg/mycpp/gc_builtins.o
[32/66] cxx dbg '' cpp/data_lang.cc _build/obj/cxx-dbg/cpp/data_lang.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_mops.cc _build/obj/cxx-dbg/mycpp/gc_mops.o
[35/66] cxx dbg '' mycpp/gc_iolib.cc _build/obj/cxx-dbg/mycpp/gc_iolib.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/libc.cc _build/obj/cxx-dbg/cpp/libc.o
[47/66] cxx dbg '' cpp/frontend_flag_spec.cc _build/obj/cxx-dbg/cpp/frontend_flag_spec.o
[48/66] cxx dbg '' cpp/frontend_pyreadline.cc _build/obj/cxx-dbg/cpp/frontend_pyreadline.o
[49/66] cxx dbg '' cpp/frontend_match.cc _build/obj/cxx-dbg/cpp/frontend_match.o
[50/66] cxx dbg '' cpp/osh_tdop.cc _build/obj/cxx-dbg/cpp/osh_tdop.o
[51/66] cxx dbg '' cpp/osh.cc _build/obj/cxx-dbg/cpp/osh.o
[52/66] cxx dbg '' cpp/pylib.cc _build/obj/cxx-dbg/cpp/pylib.o
[53/66] cxx dbg '' cpp/pgen2.cc _build/obj/cxx-dbg/cpp/pgen2.o
[54/66] cxx dbg '' _gen/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/consts.cc _build/obj/cxx-dbg/_gen/frontend/consts.o
[58/66] cxx dbg '' _gen/frontend/signal.cc _build/obj/cxx-dbg/_gen/frontend/signal.o
[59/66] cxx dbg '' _gen/osh/arith_parse.cc _build/obj/cxx-dbg/_gen/osh/arith_parse.o
[60/66] cxx dbg '' _gen/frontend/help_meta.cc _build/obj/cxx-dbg/_gen/frontend/help_meta.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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1148    1147       1       1       1 python2
   1149    1148       1       1       1 time-helper
   1150    1149       1       1       1 bash
   1151    1150       1       1       1 bash
   1152    1151       1       1       1 ps

run_snippet bash fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1159 sh
      7       1       1       1    1159 bash
     20       7       1       1    1159 bash
    670      20       1       1    1159 python2
    671     670       1       1    1159 time-helper
    672     671       1       1    1159 bash
   1147     672       1       1    1159 bash
   1155    1147       1       1    1159 python2
   1156    1155       1       1    1159 time-helper
   1157    1156       1       1    1159 bash
   1158    1157    1158       1    1159 bash
   1159    1158    1159       1    1159 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1162    1147       1       1       1 python2
   1163    1162       1       1       1 time-helper
   1164    1163       1       1       1 bash
   1165    1164       1       1       1 bash
   1166    1165       1       1       1 ps

run_snippet bash bgproc yes
[1] 1173
[1]+  Done                    ps -o $PS_COLS
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1172 sh
      7       1       1       1    1172 bash
     20       7       1       1    1172 bash
    670      20       1       1    1172 python2
    671     670       1       1    1172 time-helper
    672     671       1       1    1172 bash
   1147     672       1       1    1172 bash
   1169    1147       1       1    1172 python2
   1170    1169       1       1    1172 time-helper
   1171    1170       1       1    1172 bash
   1172    1171    1172       1    1172 bash
   1173    1172    1173       1    1172 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1176    1147       1       1       1 python2
   1177    1176       1       1       1 time-helper
   1178    1177       1       1       1 bash
   1179    1178       1       1       1 bash
   1180    1179       1       1       1 ps
   1181    1179       1       1       1 cat
   1182    1179       1       1       1 cat2

run_snippet bash fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1189 sh
      7       1       1       1    1189 bash
     20       7       1       1    1189 bash
    670      20       1       1    1189 python2
    671     670       1       1    1189 time-helper
    672     671       1       1    1189 bash
   1147     672       1       1    1189 bash
   1185    1147       1       1    1189 python2
   1186    1185       1       1    1189 time-helper
   1187    1186       1       1    1189 bash
   1188    1187    1188       1    1189 bash
   1189    1188    1189       1    1189 ps
   1190    1188    1189       1    1189 cat
   1191    1188    1189       1    1189 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
670      20       1       1       1 python2
671     670       1       1       1 time-helper
672     671       1       1       1 bash
1147     672       1       1       1 bash
1194    1147       1       1       1 python2
1195    1194       1       1       1 time-helper
1196    1195       1       1       1 bash
1197    1196       1       1       1 bash
1198    1197       1       1       1 ps
1199    1197       1       1       1 cat2
1200    1197       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    1207 sh
7       1       1       1    1207 bash
20       7       1       1    1207 bash
670      20       1       1    1207 python2
671     670       1       1    1207 time-helper
672     671       1       1    1207 bash
1147     672       1       1    1207 bash
1203    1147       1       1    1207 python2
1204    1203       1       1    1207 time-helper
1205    1204       1       1    1207 bash
1206    1205    1206       1    1207 bash
1207    1206    1207       1    1207 ps
1208    1206    1207       1    1207 cat2
1209    1206    1207       1    1207 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1212    1147       1       1       1 python2
   1213    1212       1       1       1 time-helper
   1214    1213       1       1       1 bash
   1215    1214       1       1       1 bash
   1216    1215       1       1       1 ps
   1217    1215       1       1       1 cat
   1218    1215       1       1       1 cat2

run_snippet bash bgpipe yes
[1] 1227
[1]+  Done                    ps -o $PS_COLS | cat | _tmp/cat2
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1224 sh
      7       1       1       1    1224 bash
     20       7       1       1    1224 bash
    670      20       1       1    1224 python2
    671     670       1       1    1224 time-helper
    672     671       1       1    1224 bash
   1147     672       1       1    1224 bash
   1221    1147       1       1    1224 python2
   1222    1221       1       1    1224 time-helper
   1223    1222       1       1    1224 bash
   1224    1223    1224       1    1224 bash
   1225    1224    1225       1    1224 ps
   1226    1224    1225       1    1224 cat
   1227    1224    1225       1    1224 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
670      20       1       1       1 python2
671     670       1       1       1 time-helper
672     671       1       1       1 bash
1147     672       1       1       1 bash
1230    1147       1       1       1 python2
1231    1230       1       1       1 time-helper
1232    1231       1       1       1 bash
1233    1232       1       1       1 bash
1234    1233       1       1       1 ps
1235    1233       1       1       1 cat2
1236    1233       1       1       1 bash

run_snippet bash bgpipe-lastpipe yes
[1] 1245
[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    1242 sh
7       1       1       1    1242 bash
20       7       1       1    1242 bash
670      20       1       1    1242 python2
671     670       1       1    1242 time-helper
672     671       1       1    1242 bash
1147     672       1       1    1242 bash
1239    1147       1       1    1242 python2
1240    1239       1       1    1242 time-helper
1241    1240       1       1    1242 bash
1242    1241    1242       1    1242 bash
1243    1242    1243       1    1242 ps
1244    1242    1243       1    1242 cat2
1245    1242    1243       1    1242 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1248    1147       1       1       1 python2
   1249    1248       1       1       1 time-helper
   1250    1249       1       1       1 bash
   1251    1250       1       1       1 bash
   1252    1251       1       1       1 bash
   1253    1252       1       1       1 ps
ALIVE

run_snippet bash subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1260 sh
      7       1       1       1    1260 bash
     20       7       1       1    1260 bash
    670      20       1       1    1260 python2
    671     670       1       1    1260 time-helper
    672     671       1       1    1260 bash
   1147     672       1       1    1260 bash
   1256    1147       1       1    1260 python2
   1257    1256       1       1    1260 time-helper
   1258    1257       1       1    1260 bash
   1259    1258    1259       1    1260 bash
   1260    1259    1260       1    1260 bash
   1261    1260    1260       1    1260 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1264    1147       1       1       1 python2
   1265    1264       1       1       1 time-helper
   1266    1265       1       1       1 bash
   1267    1266       1       1       1 bash
   1268    1267       1       1       1 ps

run_snippet bash csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1274 sh
      7       1       1       1    1274 bash
     20       7       1       1    1274 bash
    670      20       1       1    1274 python2
    671     670       1       1    1274 time-helper
    672     671       1       1    1274 bash
   1147     672       1       1    1274 bash
   1271    1147       1       1    1274 python2
   1272    1271       1       1    1274 time-helper
   1273    1272       1       1    1274 bash
   1274    1273    1274       1    1274 bash
   1275    1274    1274       1    1274 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1278    1147       1       1       1 python2
   1279    1278       1       1       1 time-helper
   1280    1279       1       1       1 bash
   1281    1280       1       1       1 bash
   1282    1281       1       1       1 bash
   1283    1281       1       1       1 cat
   1284    1282       1       1       1 ps

run_snippet bash psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1292 sh
      7       1       1       1    1292 bash
     20       7       1       1    1292 bash
    670      20       1       1    1292 python2
    671     670       1       1    1292 time-helper
    672     671       1       1    1292 bash
   1147     672       1       1    1292 bash
   1287    1147       1       1    1292 python2
   1288    1287       1       1    1292 time-helper
   1289    1288       1       1    1292 bash
   1290    1289    1290       1    1292 bash
   1291    1290    1290       1    1292 bash
   1292    1290    1292       1    1292 cat
   1293    1291    1290       1    1292 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1296    1147       1       1       1 python2
   1297    1296       1       1       1 time-helper
   1298    1297       1       1       1 bash
   1299    1298       1       1       1 dash
   1300    1299       1       1       1 ps

run_snippet dash fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1307 sh
      7       1       1       1    1307 bash
     20       7       1       1    1307 bash
    670      20       1       1    1307 python2
    671     670       1       1    1307 time-helper
    672     671       1       1    1307 bash
   1147     672       1       1    1307 bash
   1303    1147       1       1    1307 python2
   1304    1303       1       1    1307 time-helper
   1305    1304       1       1    1307 bash
   1306    1305    1306       1    1307 dash
   1307    1306    1307       1    1307 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1310    1147       1       1       1 python2
   1311    1310       1       1       1 time-helper
   1312    1311       1       1       1 bash
   1313    1312       1       1       1 dash
   1314    1313       1       1       1 ps

run_snippet dash bgproc yes
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1320 sh
      7       1       1       1    1320 bash
     20       7       1       1    1320 bash
    670      20       1       1    1320 python2
    671     670       1       1    1320 time-helper
    672     671       1       1    1320 bash
   1147     672       1       1    1320 bash
   1317    1147       1       1    1320 python2
   1318    1317       1       1    1320 time-helper
   1319    1318       1       1    1320 bash
   1320    1319    1320       1    1320 dash
   1321    1320    1321       1    1320 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1324    1147       1       1       1 python2
   1325    1324       1       1       1 time-helper
   1326    1325       1       1       1 bash
   1327    1326       1       1       1 dash
   1328    1327       1       1       1 ps
   1329    1327       1       1       1 cat
   1330    1327       1       1       1 cat2

run_snippet dash fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1337 sh
      7       1       1       1    1337 bash
     20       7       1       1    1337 bash
    670      20       1       1    1337 python2
    671     670       1       1    1337 time-helper
    672     671       1       1    1337 bash
   1147     672       1       1    1337 bash
   1333    1147       1       1    1337 python2
   1334    1333       1       1    1337 time-helper
   1335    1334       1       1    1337 bash
   1336    1335    1336       1    1337 dash
   1337    1336    1337       1    1337 ps
   1338    1336    1337       1    1337 cat
   1339    1336    1337       1    1337 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
670      20       1       1       1 python2
671     670       1       1       1 time-helper
672     671       1       1       1 bash
1147     672       1       1       1 bash
1342    1147       1       1       1 python2
1343    1342       1       1       1 time-helper
1344    1343       1       1       1 bash
1345    1344       1       1       1 dash
1346    1345       1       1       1 ps
1347    1345       1       1       1 cat2
1348    1345       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    1355 sh
7       1       1       1    1355 bash
20       7       1       1    1355 bash
670      20       1       1    1355 python2
671     670       1       1    1355 time-helper
672     671       1       1    1355 bash
1147     672       1       1    1355 bash
1351    1147       1       1    1355 python2
1352    1351       1       1    1355 time-helper
1353    1352       1       1    1355 bash
1354    1353    1354       1    1355 dash
1355    1354    1355       1    1355 ps
1356    1354    1355       1    1355 cat2
1357    1354    1355       1    1355 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1360    1147       1       1       1 python2
   1361    1360       1       1       1 time-helper
   1362    1361       1       1       1 bash
   1363    1362       1       1       1 dash
   1364    1363       1       1       1 ps
   1365    1363       1       1       1 cat
   1366    1363       1       1       1 cat2

run_snippet dash bgpipe yes
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1372 sh
      7       1       1       1    1372 bash
     20       7       1       1    1372 bash
    670      20       1       1    1372 python2
    671     670       1       1    1372 time-helper
    672     671       1       1    1372 bash
   1147     672       1       1    1372 bash
   1369    1147       1       1    1372 python2
   1370    1369       1       1    1372 time-helper
   1371    1370       1       1    1372 bash
   1372    1371    1372       1    1372 dash
   1373    1372    1373       1    1372 ps
   1374    1372    1373       1    1372 cat
   1375    1372    1373       1    1372 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
670      20       1       1       1 python2
671     670       1       1       1 time-helper
672     671       1       1       1 bash
1147     672       1       1       1 bash
1378    1147       1       1       1 python2
1379    1378       1       1       1 time-helper
1380    1379       1       1       1 bash
1381    1380       1       1       1 dash
1382    1381       1       1       1 ps
1383    1381       1       1       1 cat2
1384    1381       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    1390 sh
7       1       1       1    1390 bash
20       7       1       1    1390 bash
670      20       1       1    1390 python2
671     670       1       1    1390 time-helper
672     671       1       1    1390 bash
1147     672       1       1    1390 bash
1387    1147       1       1    1390 python2
1388    1387       1       1    1390 time-helper
1389    1388       1       1    1390 bash
1390    1389    1390       1    1390 dash
1391    1390    1391       1    1390 ps
1392    1390    1391       1    1390 cat2
1393    1390    1391       1    1390 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1396    1147       1       1       1 python2
   1397    1396       1       1       1 time-helper
   1398    1397       1       1       1 bash
   1399    1398       1       1       1 dash
   1400    1399       1       1       1 dash
   1401    1400       1       1       1 ps
ALIVE

run_snippet dash subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1408 sh
      7       1       1       1    1408 bash
     20       7       1       1    1408 bash
    670      20       1       1    1408 python2
    671     670       1       1    1408 time-helper
    672     671       1       1    1408 bash
   1147     672       1       1    1408 bash
   1404    1147       1       1    1408 python2
   1405    1404       1       1    1408 time-helper
   1406    1405       1       1    1408 bash
   1407    1406    1407       1    1408 dash
   1408    1407    1408       1    1408 dash
   1409    1408    1408       1    1408 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1412    1147       1       1       1 python2
   1413    1412       1       1       1 time-helper
   1414    1413       1       1       1 bash
   1415    1414       1       1       1 dash
   1416    1415       1       1       1 ps

run_snippet dash csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1422 sh
      7       1       1       1    1422 bash
     20       7       1       1    1422 bash
    670      20       1       1    1422 python2
    671     670       1       1    1422 time-helper
    672     671       1       1    1422 bash
   1147     672       1       1    1422 bash
   1419    1147       1       1    1422 python2
   1420    1419       1       1    1422 time-helper
   1421    1420       1       1    1422 bash
   1422    1421    1422       1    1422 dash
   1423    1422    1422       1    1422 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1438    1147       1       1       1 python2
   1439    1438       1       1       1 time-helper
   1440    1439       1       1       1 bash
   1441    1440       1       1       1 mksh
   1442    1441       1       1       1 ps

run_snippet mksh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1449 sh
      7       1       1       1    1449 bash
     20       7       1       1    1449 bash
    670      20       1       1    1449 python2
    671     670       1       1    1449 time-helper
    672     671       1       1    1449 bash
   1147     672       1       1    1449 bash
   1445    1147       1       1    1449 python2
   1446    1445       1       1    1449 time-helper
   1447    1446       1       1    1449 bash
   1448    1447    1448       1    1449 mksh
   1449    1448    1449       1    1449 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1452    1147       1       1       1 python2
   1453    1452       1       1       1 time-helper
   1454    1453       1       1       1 bash
   1455    1454       1       1       1 mksh
   1456    1455       1       1       1 ps

run_snippet mksh bgproc yes
[1] 1463
[1] + Done                 \ps -o $PS_COLS 
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1462 sh
      7       1       1       1    1462 bash
     20       7       1       1    1462 bash
    670      20       1       1    1462 python2
    671     670       1       1    1462 time-helper
    672     671       1       1    1462 bash
   1147     672       1       1    1462 bash
   1459    1147       1       1    1462 python2
   1460    1459       1       1    1462 time-helper
   1461    1460       1       1    1462 bash
   1462    1461    1462       1    1462 mksh
   1463    1462    1463       1    1462 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1466    1147       1       1       1 python2
   1467    1466       1       1       1 time-helper
   1468    1467       1       1       1 bash
   1469    1468       1       1       1 mksh
   1470    1469       1       1       1 ps
   1471    1469       1       1       1 mksh
   1472    1469       1       1       1 cat2

run_snippet mksh fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1479 sh
      7       1       1       1    1479 bash
     20       7       1       1    1479 bash
    670      20       1       1    1479 python2
    671     670       1       1    1479 time-helper
    672     671       1       1    1479 bash
   1147     672       1       1    1479 bash
   1475    1147       1       1    1479 python2
   1476    1475       1       1    1479 time-helper
   1477    1476       1       1    1479 bash
   1478    1477    1478       1    1479 mksh
   1479    1478    1479       1    1479 ps
   1480    1478    1479       1    1479 mksh
   1481    1478    1479       1    1479 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
670      20       1       1       1 python2
671     670       1       1       1 time-helper
672     671       1       1       1 bash
1147     672       1       1       1 bash
1484    1147       1       1       1 python2
1485    1484       1       1       1 time-helper
1486    1485       1       1       1 bash
1487    1486       1       1       1 mksh
1488    1487       1       1       1 ps
1489    1487       1       1       1 cat2
1490    1487       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    1497 sh
7       1       1       1    1497 bash
20       7       1       1    1497 bash
670      20       1       1    1497 python2
671     670       1       1    1497 time-helper
672     671       1       1    1497 bash
1147     672       1       1    1497 bash
1493    1147       1       1    1497 python2
1494    1493       1       1    1497 time-helper
1495    1494       1       1    1497 bash
1496    1495    1496       1    1497 mksh
1497    1496    1497       1    1497 ps
1498    1496    1497       1    1497 cat2
1499    1496    1497       1    1497 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1502    1147       1       1       1 python2
   1503    1502       1       1       1 time-helper
   1504    1503       1       1       1 bash
   1505    1504       1       1       1 mksh
   1506    1505       1       1       1 ps
   1507    1505       1       1       1 mksh
   1508    1505       1       1       1 cat2

run_snippet mksh bgpipe yes
[1] 1515 1516 1517
[1] + Done                 \ps -o $PS_COLS | \cat | _tmp/cat2 
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1514 sh
      7       1       1       1    1514 bash
     20       7       1       1    1514 bash
    670      20       1       1    1514 python2
    671     670       1       1    1514 time-helper
    672     671       1       1    1514 bash
   1147     672       1       1    1514 bash
   1511    1147       1       1    1514 python2
   1512    1511       1       1    1514 time-helper
   1513    1512       1       1    1514 bash
   1514    1513    1514       1    1514 mksh
   1515    1514    1515       1    1514 ps
   1516    1514    1515       1    1514 mksh
   1517    1514    1515       1    1514 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
670      20       1       1       1 python2
671     670       1       1       1 time-helper
672     671       1       1       1 bash
1147     672       1       1       1 bash
1520    1147       1       1       1 python2
1521    1520       1       1       1 time-helper
1522    1521       1       1       1 bash
1523    1522       1       1       1 mksh
1524    1523       1       1       1 ps
1525    1523       1       1       1 cat2
1526    1523       1       1       1 mksh

run_snippet mksh bgpipe-lastpipe yes
[1] 1533 1534 1535
[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    1532 sh
7       1       1       1    1532 bash
20       7       1       1    1532 bash
670      20       1       1    1532 python2
671     670       1       1    1532 time-helper
672     671       1       1    1532 bash
1147     672       1       1    1532 bash
1529    1147       1       1    1532 python2
1530    1529       1       1    1532 time-helper
1531    1530       1       1    1532 bash
1532    1531    1532       1    1532 mksh
1533    1532    1533       1    1532 ps
1534    1532    1533       1    1532 cat2
1535    1532    1533       1    1532 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1538    1147       1       1       1 python2
   1539    1538       1       1       1 time-helper
   1540    1539       1       1       1 bash
   1541    1540       1       1       1 mksh
   1542    1541       1       1       1 mksh
   1543    1542       1       1       1 ps
ALIVE

run_snippet mksh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1550 sh
      7       1       1       1    1550 bash
     20       7       1       1    1550 bash
    670      20       1       1    1550 python2
    671     670       1       1    1550 time-helper
    672     671       1       1    1550 bash
   1147     672       1       1    1550 bash
   1546    1147       1       1    1550 python2
   1547    1546       1       1    1550 time-helper
   1548    1547       1       1    1550 bash
   1549    1548    1549       1    1550 mksh
   1550    1549    1550       1    1550 mksh
   1551    1550    1550       1    1550 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1554    1147       1       1       1 python2
   1555    1554       1       1       1 time-helper
   1556    1555       1       1       1 bash
   1557    1556       1       1       1 mksh
   1558    1557       1       1       1 ps

run_snippet mksh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1564 sh
      7       1       1       1    1564 bash
     20       7       1       1    1564 bash
    670      20       1       1    1564 python2
    671     670       1       1    1564 time-helper
    672     671       1       1    1564 bash
   1147     672       1       1    1564 bash
   1561    1147       1       1    1564 python2
   1562    1561       1       1    1564 time-helper
   1563    1562       1       1    1564 bash
   1564    1563    1564       1    1564 mksh
   1565    1564    1564       1    1564 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1580    1147       1       1       1 python2
   1581    1580       1       1       1 time-helper
   1582    1581       1       1       1 bash
   1583    1582       1       1       1 zsh
   1584    1583       1       1       1 ps

run_snippet zsh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1592 sh
      7       1       1       1    1592 bash
     20       7       1       1    1592 bash
    670      20       1       1    1592 python2
    671     670       1       1    1592 time-helper
    672     671       1       1    1592 bash
   1147     672       1       1    1592 bash
   1587    1147       1       1    1592 python2
   1588    1587       1       1    1592 time-helper
   1589    1588       1       1    1592 bash
   1590    1589    1590       1    1592 zsh
   1592    1590    1592       1    1592 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1595    1147       1       1       1 python2
   1596    1595       1       1       1 time-helper
   1597    1596       1       1       1 bash
   1598    1597       1       1       1 zsh
   1599    1598       1       1       1 ps

run_snippet zsh bgproc yes
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1605 sh
      7       1       1       1    1605 bash
     20       7       1       1    1605 bash
    670      20       1       1    1605 python2
    671     670       1       1    1605 time-helper
    672     671       1       1    1605 bash
   1147     672       1       1    1605 bash
   1602    1147       1       1    1605 python2
   1603    1602       1       1    1605 time-helper
   1604    1603       1       1    1605 bash
   1605    1604    1605       1    1605 zsh
   1607    1605    1607       1    1605 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1610    1147       1       1       1 python2
   1611    1610       1       1       1 time-helper
   1612    1611       1       1       1 bash
   1613    1612       1       1       1 zsh
   1614    1613       1       1       1 ps
   1615    1613       1       1       1 cat
   1616    1613       1       1       1 cat2

run_snippet zsh fgpipe yes
[foreground pipeline, last is external]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1624 sh
      7       1       1       1    1624 bash
     20       7       1       1    1624 bash
    670      20       1       1    1624 python2
    671     670       1       1    1624 time-helper
    672     671       1       1    1624 bash
   1147     672       1       1    1624 bash
   1619    1147       1       1    1624 python2
   1620    1619       1       1    1624 time-helper
   1621    1620       1       1    1624 bash
   1622    1621    1622       1    1624 zsh
   1624    1622    1624       1    1624 ps
   1625    1622    1624       1    1624 cat
   1626    1622    1624       1    1624 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
670      20       1       1       1 python2
671     670       1       1       1 time-helper
672     671       1       1       1 bash
1147     672       1       1       1 bash
1629    1147       1       1       1 python2
1630    1629       1       1       1 time-helper
1631    1630       1       1       1 bash
1632    1631       1       1       1 zsh
1633    1632       1       1       1 ps
1634    1632       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    1642 sh
7       1       1       1    1642 bash
20       7       1       1    1642 bash
670      20       1       1    1642 python2
671     670       1       1    1642 time-helper
672     671       1       1    1642 bash
1147     672       1       1    1642 bash
1637    1147       1       1    1642 python2
1638    1637       1       1    1642 time-helper
1639    1638       1       1    1642 bash
1640    1639    1640       1    1642 zsh
1642    1640    1642       1    1642 ps
1643    1640    1642       1    1642 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1646    1147       1       1       1 python2
   1647    1646       1       1       1 time-helper
   1648    1647       1       1       1 bash
   1649    1648       1       1       1 zsh
   1650    1649       1       1       1 ps
   1651    1649       1       1       1 cat
   1652    1649       1       1       1 cat2

run_snippet zsh bgpipe yes
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1658 sh
      7       1       1       1    1658 bash
     20       7       1       1    1658 bash
    670      20       1       1    1658 python2
    671     670       1       1    1658 time-helper
    672     671       1       1    1658 bash
   1147     672       1       1    1658 bash
   1655    1147       1       1    1658 python2
   1656    1655       1       1    1658 time-helper
   1657    1656       1       1    1658 bash
   1658    1657    1658       1    1658 zsh
   1660    1658    1660       1    1658 ps
   1661    1658    1660       1    1658 cat
   1662    1658    1660       1    1658 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
670      20       1       1       1 python2
671     670       1       1       1 time-helper
672     671       1       1       1 bash
1147     672       1       1       1 bash
1665    1147       1       1       1 python2
1666    1665       1       1       1 time-helper
1667    1666       1       1       1 bash
1668    1667       1       1       1 zsh
1669    1668       1       1       1 ps
1670    1668       1       1       1 cat2
1671    1668       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    1677 sh
7       1       1       1    1677 bash
20       7       1       1    1677 bash
670      20       1       1    1677 python2
671     670       1       1    1677 time-helper
672     671       1       1    1677 bash
1147     672       1       1    1677 bash
1674    1147       1       1    1677 python2
1675    1674       1       1    1677 time-helper
1676    1675       1       1    1677 bash
1677    1676    1677       1    1677 zsh
1679    1677    1679       1    1677 ps
1680    1677    1679       1    1677 cat2
1681    1677    1679       1    1677 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1684    1147       1       1       1 python2
   1685    1684       1       1       1 time-helper
   1686    1685       1       1       1 bash
   1687    1686       1       1       1 zsh
   1688    1687       1       1       1 zsh
   1689    1688       1       1       1 ps
ALIVE

run_snippet zsh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1697 sh
      7       1       1       1    1697 bash
     20       7       1       1    1697 bash
    670      20       1       1    1697 python2
    671     670       1       1    1697 time-helper
    672     671       1       1    1697 bash
   1147     672       1       1    1697 bash
   1692    1147       1       1    1697 python2
   1693    1692       1       1    1697 time-helper
   1694    1693       1       1    1697 bash
   1695    1694    1695       1    1697 zsh
   1697    1695    1697       1    1697 zsh
   1698    1697    1697       1    1697 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1701    1147       1       1       1 python2
   1702    1701       1       1       1 time-helper
   1703    1702       1       1       1 bash
   1704    1703       1       1       1 zsh
   1705    1704       1       1       1 ps

run_snippet zsh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1711 sh
      7       1       1       1    1711 bash
     20       7       1       1    1711 bash
    670      20       1       1    1711 python2
    671     670       1       1    1711 time-helper
    672     671       1       1    1711 bash
   1147     672       1       1    1711 bash
   1708    1147       1       1    1711 python2
   1709    1708       1       1    1711 time-helper
   1710    1709       1       1    1711 bash
   1711    1710    1711       1    1711 zsh
   1713    1711    1711       1    1711 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1716    1147       1       1       1 python2
   1717    1716       1       1       1 time-helper
   1718    1717       1       1       1 bash
   1719    1718       1       1       1 zsh
   1720    1719       1       1       1 ps
   1721    1719       1       1       1 cat

run_snippet zsh psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1730 sh
      7       1       1       1    1730 bash
     20       7       1       1    1730 bash
    670      20       1       1    1730 python2
    671     670       1       1    1730 time-helper
    672     671       1       1    1730 bash
   1147     672       1       1    1730 bash
   1724    1147       1       1    1730 python2
   1725    1724       1       1    1730 time-helper
   1726    1725       1       1    1730 bash
   1727    1726    1727       1    1730 zsh
   1729    1727    1729       1    1730 ps
   1730    1727    1730       1    1730 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1733    1147       1       1       1 python2
   1734    1733       1       1       1 time-helper
   1735    1734       1       1       1 bash
   1736    1735       1       1       1 python2
   1739    1736       1       1       1 ps

run_snippet bin/osh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1748 sh
      7       1       1       1    1748 bash
     20       7       1       1    1748 bash
    670      20       1       1    1748 python2
    671     670       1       1    1748 time-helper
    672     671       1       1    1748 bash
   1147     672       1       1    1748 bash
   1742    1147       1       1    1748 python2
   1743    1742       1       1    1748 time-helper
   1744    1743       1       1    1748 bash
   1745    1744    1745       1    1748 python2
   1748    1745    1748       1    1748 ps

run_snippet bin/osh bgproc -
[%1] PID 1757 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1751    1147       1       1       1 python2
   1752    1751       1       1       1 time-helper
   1753    1752       1       1       1 bash
   1754    1753       1       1       1 python2
   1757    1754       1       1       1 ps

run_snippet bin/osh bgproc yes
[%1] PID 1766 Started
[%1] PID 1766 Done
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1763 sh
      7       1       1       1    1763 bash
     20       7       1       1    1763 bash
    670      20       1       1    1763 python2
    671     670       1       1    1763 time-helper
    672     671       1       1    1763 bash
   1147     672       1       1    1763 bash
   1760    1147       1       1    1763 python2
   1761    1760       1       1    1763 time-helper
   1762    1761       1       1    1763 bash
   1763    1762    1763       1    1763 python2
   1766    1763    1766       1    1763 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1769    1147       1       1       1 python2
   1770    1769       1       1       1 time-helper
   1771    1770       1       1       1 bash
   1772    1771       1       1       1 python2
   1775    1772       1       1       1 ps
   1776    1772       1       1       1 cat
   1777    1772       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    1786 sh
      7       1       1       1    1786 bash
     20       7       1       1    1786 bash
    670      20       1       1    1786 python2
    671     670       1       1    1786 time-helper
    672     671       1       1    1786 bash
   1147     672       1       1    1786 bash
   1780    1147       1       1    1786 python2
   1781    1780       1       1    1786 time-helper
   1782    1781       1       1    1786 bash
   1783    1782    1783       1    1786 python2
   1786    1783    1786       1    1786 ps
   1787    1783    1786       1    1786 cat
   1788    1783    1786       1    1786 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
670      20       1       1       1 python2
671     670       1       1       1 time-helper
672     671       1       1       1 bash
1147     672       1       1       1 bash
1791    1147       1       1       1 python2
1792    1791       1       1       1 time-helper
1793    1792       1       1       1 bash
1794    1793       1       1       1 python2
1797    1794       1       1       1 ps
1798    1794       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    1807 sh
7       1       1       1    1807 bash
20       7       1       1    1807 bash
670      20       1       1    1807 python2
671     670       1       1    1807 time-helper
672     671       1       1    1807 bash
1147     672       1       1    1807 bash
1801    1147       1       1    1807 python2
1802    1801       1       1    1807 time-helper
1803    1802       1       1    1807 bash
1804    1803    1804       1    1807 python2
1807    1804    1807       1    1807 ps
1808    1804    1807       1    1807 cat2

run_snippet bin/osh bgpipe -
[%1] PGID 1817 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1811    1147       1       1       1 python2
   1812    1811       1       1       1 time-helper
   1813    1812       1       1       1 bash
   1814    1813       1       1       1 python2
   1817    1814       1       1       1 ps
   1818    1814       1       1       1 cat
   1819    1814       1       1       1 cat2

run_snippet bin/osh bgpipe yes
[%1] PID 1830 Started
[%1] PGID 1828 Done
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1825 sh
      7       1       1       1    1825 bash
     20       7       1       1    1825 bash
    670      20       1       1    1825 python2
    671     670       1       1    1825 time-helper
    672     671       1       1    1825 bash
   1147     672       1       1    1825 bash
   1822    1147       1       1    1825 python2
   1823    1822       1       1    1825 time-helper
   1824    1823       1       1    1825 bash
   1825    1824    1825       1    1825 python2
   1828    1825    1828       1    1825 ps
   1829    1825    1828       1    1825 cat
   1830    1825    1828       1    1825 cat2

run_snippet bin/osh bgpipe-lastpipe -
[%1] PGID 1839 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
670      20       1       1       1 python2
671     670       1       1       1 time-helper
672     671       1       1       1 bash
1147     672       1       1       1 bash
1833    1147       1       1       1 python2
1834    1833       1       1       1 time-helper
1835    1834       1       1       1 bash
1836    1835       1       1       1 python2
1839    1836       1       1       1 ps
1840    1836       1       1       1 cat2
1841    1836       1       1       1 python2

run_snippet bin/osh bgpipe-lastpipe yes
[%1] PID 1852 Started
[%1] PGID 1850 Done
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    1847 sh
7       1       1       1    1847 bash
20       7       1       1    1847 bash
670      20       1       1    1847 python2
671     670       1       1    1847 time-helper
672     671       1       1    1847 bash
1147     672       1       1    1847 bash
1844    1147       1       1    1847 python2
1845    1844       1       1    1847 time-helper
1846    1845       1       1    1847 bash
1847    1846    1847       1    1847 python2
1850    1847    1850       1    1847 ps
1851    1847    1850       1    1847 cat2
1852    1847    1850       1    1847 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1855    1147       1       1       1 python2
   1856    1855       1       1       1 time-helper
   1857    1856       1       1       1 bash
   1858    1857       1       1       1 python2
   1861    1858       1       1       1 python2
   1862    1861       1       1       1 ps
ALIVE

run_snippet bin/osh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1871 sh
      7       1       1       1    1871 bash
     20       7       1       1    1871 bash
    670      20       1       1    1871 python2
    671     670       1       1    1871 time-helper
    672     671       1       1    1871 bash
   1147     672       1       1    1871 bash
   1865    1147       1       1    1871 python2
   1866    1865       1       1    1871 time-helper
   1867    1866       1       1    1871 bash
   1868    1867    1868       1    1871 python2
   1871    1868    1871       1    1871 python2
   1872    1871    1871       1    1871 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1875    1147       1       1       1 python2
   1876    1875       1       1       1 time-helper
   1877    1876       1       1       1 bash
   1878    1877       1       1       1 python2
   1881    1878       1       1       1 ps

run_snippet bin/osh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1887 sh
      7       1       1       1    1887 bash
     20       7       1       1    1887 bash
    670      20       1       1    1887 python2
    671     670       1       1    1887 time-helper
    672     671       1       1    1887 bash
   1147     672       1       1    1887 bash
   1884    1147       1       1    1887 python2
   1885    1884       1       1    1887 time-helper
   1886    1885       1       1    1887 bash
   1887    1886    1887       1    1887 python2
   1890    1887    1887       1    1887 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1893    1147       1       1       1 python2
   1894    1893       1       1       1 time-helper
   1895    1894       1       1       1 bash
   1896    1895       1       1       1 python2
   1899    1896       1       1       1 ps
   1900    1896       1       1       1 cat

run_snippet bin/osh psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1910 sh
      7       1       1       1    1910 bash
     20       7       1       1    1910 bash
    670      20       1       1    1910 python2
    671     670       1       1    1910 time-helper
    672     671       1       1    1910 bash
   1147     672       1       1    1910 bash
   1903    1147       1       1    1910 python2
   1904    1903       1       1    1910 time-helper
   1905    1904       1       1    1910 bash
   1906    1905    1906       1    1910 python2
   1909    1906    1909       1    1910 ps
   1910    1906    1910       1    1910 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1913    1147       1       1       1 python2
   1914    1913       1       1       1 time-helper
   1915    1914       1       1       1 bash
   1916    1915       1       1       1 osh
   1917    1916       1       1       1 ps

run_snippet _bin/cxx-dbg/osh fgproc yes
[foreground process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1924 sh
      7       1       1       1    1924 bash
     20       7       1       1    1924 bash
    670      20       1       1    1924 python2
    671     670       1       1    1924 time-helper
    672     671       1       1    1924 bash
   1147     672       1       1    1924 bash
   1920    1147       1       1    1924 python2
   1921    1920       1       1    1924 time-helper
   1922    1921       1       1    1924 bash
   1923    1922    1923       1    1924 osh
   1924    1923    1924       1    1924 ps

run_snippet _bin/cxx-dbg/osh bgproc -
[%1] PID 1931 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1927    1147       1       1       1 python2
   1928    1927       1       1       1 time-helper
   1929    1928       1       1       1 bash
   1930    1929       1       1       1 osh
   1931    1930       1       1       1 ps

run_snippet _bin/cxx-dbg/osh bgproc yes
[%1] PID 1938 Started
[%1] PID 1938 Done
[background process]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1937 sh
      7       1       1       1    1937 bash
     20       7       1       1    1937 bash
    670      20       1       1    1937 python2
    671     670       1       1    1937 time-helper
    672     671       1       1    1937 bash
   1147     672       1       1    1937 bash
   1934    1147       1       1    1937 python2
   1935    1934       1       1    1937 time-helper
   1936    1935       1       1    1937 bash
   1937    1936    1937       1    1937 osh
   1938    1937    1938       1    1937 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1941    1147       1       1       1 python2
   1942    1941       1       1       1 time-helper
   1943    1942       1       1       1 bash
   1944    1943       1       1       1 osh
   1945    1944       1       1       1 ps
   1946    1944       1       1       1 cat
   1947    1944       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    1954 sh
      7       1       1       1    1954 bash
     20       7       1       1    1954 bash
    670      20       1       1    1954 python2
    671     670       1       1    1954 time-helper
    672     671       1       1    1954 bash
   1147     672       1       1    1954 bash
   1950    1147       1       1    1954 python2
   1951    1950       1       1    1954 time-helper
   1952    1951       1       1    1954 bash
   1953    1952    1953       1    1954 osh
   1954    1953    1954       1    1954 ps
   1955    1953    1954       1    1954 cat
   1956    1953    1954       1    1954 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
670      20       1       1       1 python2
671     670       1       1       1 time-helper
672     671       1       1       1 bash
1147     672       1       1       1 bash
1959    1147       1       1       1 python2
1960    1959       1       1       1 time-helper
1961    1960       1       1       1 bash
1962    1961       1       1       1 osh
1963    1962       1       1       1 ps
1964    1962       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    1971 sh
7       1       1       1    1971 bash
20       7       1       1    1971 bash
670      20       1       1    1971 python2
671     670       1       1    1971 time-helper
672     671       1       1    1971 bash
1147     672       1       1    1971 bash
1967    1147       1       1    1971 python2
1968    1967       1       1    1971 time-helper
1969    1968       1       1    1971 bash
1970    1969    1970       1    1971 osh
1971    1970    1971       1    1971 ps
1972    1970    1971       1    1971 cat2

run_snippet _bin/cxx-dbg/osh bgpipe -
[%1] PGID 1979 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   1975    1147       1       1       1 python2
   1976    1975       1       1       1 time-helper
   1977    1976       1       1       1 bash
   1978    1977       1       1       1 osh
   1979    1978       1       1       1 ps
   1980    1978       1       1       1 cat
   1981    1978       1       1       1 cat2

run_snippet _bin/cxx-dbg/osh bgpipe yes
[%1] PID 1990 Started
[%1] PGID 1988 Done
[background pipeline]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    1987 sh
      7       1       1       1    1987 bash
     20       7       1       1    1987 bash
    670      20       1       1    1987 python2
    671     670       1       1    1987 time-helper
    672     671       1       1    1987 bash
   1147     672       1       1    1987 bash
   1984    1147       1       1    1987 python2
   1985    1984       1       1    1987 time-helper
   1986    1985       1       1    1987 bash
   1987    1986    1987       1    1987 osh
   1988    1987    1988       1    1987 ps
   1989    1987    1988       1    1987 cat
   1990    1987    1988       1    1987 cat2

run_snippet _bin/cxx-dbg/osh bgpipe-lastpipe -
[%1] PGID 1997 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
670      20       1       1       1 python2
671     670       1       1       1 time-helper
672     671       1       1       1 bash
1147     672       1       1       1 bash
1993    1147       1       1       1 python2
1994    1993       1       1       1 time-helper
1995    1994       1       1       1 bash
1996    1995       1       1       1 osh
1997    1996       1       1       1 ps
1998    1996       1       1       1 cat2
1999    1996       1       1       1 osh

run_snippet _bin/cxx-dbg/osh bgpipe-lastpipe yes
[%1] PID 2008 Started
[%1] PGID 2006 Done
[background pipeline, last is builtin]
PID    PPID    PGID     SID   TPGID COMMAND
1       0       1       1    2005 sh
7       1       1       1    2005 bash
20       7       1       1    2005 bash
670      20       1       1    2005 python2
671     670       1       1    2005 time-helper
672     671       1       1    2005 bash
1147     672       1       1    2005 bash
2002    1147       1       1    2005 python2
2003    2002       1       1    2005 time-helper
2004    2003       1       1    2005 bash
2005    2004    2005       1    2005 osh
2006    2005    2006       1    2005 ps
2007    2005    2006       1    2005 cat2
2008    2005    2006       1    2005 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   2011    1147       1       1       1 python2
   2012    2011       1       1       1 time-helper
   2013    2012       1       1       1 bash
   2014    2013       1       1       1 osh
   2015    2014       1       1       1 osh
   2016    2015       1       1       1 ps
ALIVE

run_snippet _bin/cxx-dbg/osh subshell yes
[subshell]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2023 sh
      7       1       1       1    2023 bash
     20       7       1       1    2023 bash
    670      20       1       1    2023 python2
    671     670       1       1    2023 time-helper
    672     671       1       1    2023 bash
   1147     672       1       1    2023 bash
   2019    1147       1       1    2023 python2
   2020    2019       1       1    2023 time-helper
   2021    2020       1       1    2023 bash
   2022    2021    2022       1    2023 osh
   2023    2022    2023       1    2023 osh
   2024    2023    2023       1    2023 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   2027    1147       1       1       1 python2
   2028    2027       1       1       1 time-helper
   2029    2028       1       1       1 bash
   2030    2029       1       1       1 osh
   2031    2030       1       1       1 ps

run_snippet _bin/cxx-dbg/osh csub yes
[command sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2037 sh
      7       1       1       1    2037 bash
     20       7       1       1    2037 bash
    670      20       1       1    2037 python2
    671     670       1       1    2037 time-helper
    672     671       1       1    2037 bash
   1147     672       1       1    2037 bash
   2034    1147       1       1    2037 python2
   2035    2034       1       1    2037 time-helper
   2036    2035       1       1    2037 bash
   2037    2036    2037       1    2037 osh
   2038    2037    2037       1    2037 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
    670      20       1       1       1 python2
    671     670       1       1       1 time-helper
    672     671       1       1       1 bash
   1147     672       1       1       1 bash
   2041    1147       1       1       1 python2
   2042    2041       1       1       1 time-helper
   2043    2042       1       1       1 bash
   2044    2043       1       1       1 osh
   2045    2044       1       1       1 ps
   2046    2044       1       1       1 cat

run_snippet _bin/cxx-dbg/osh psub yes
[process sub]
    PID    PPID    PGID     SID   TPGID COMMAND
      1       0       1       1    2054 sh
      7       1       1       1    2054 bash
     20       7       1       1    2054 bash
    670      20       1       1    2054 python2
    671     670       1       1    2054 time-helper
    672     671       1       1    2054 bash
   1147     672       1       1    2054 bash
   2049    1147       1       1    2054 python2
   2050    2049       1       1    2054 time-helper
   2051    2050       1       1    2054 bash
   2052    2051    2052       1    2054 osh
   2053    2052    2053       1    2054 ps
   2054    2052    2054       1    2054 cat

Wrote _tmp/process-table/index.html