(
   ^
[ headless ]:1: Unexpected EOF while parsing command
  zzZZ
  ^~~~
[ headless ]:1: 'zzZZ' not found (OILS-ERR-100)
  declare -X
          ^~
[ headless ]:1: 'declare' doesn't accept flag -X
  break
  ^~~~~
[ headless ]:1: warning: Invalid control flow at top level
  continue
  ^~~~~~~~
[ headless ]:1: warning: Invalid control flow at top level
d
install
libc.so
line_input.so
metrics
mycpp
oils-version.txt
opy
osh
pea
pgen2
posix_.so
prebuilt
pyext
pylib
shell.nix
soil
spec
stdlib
test
testdata
tools
trees
uninstall
vendor
web
yaks
ysh
x: mystdin
PS1=osh-0.27$
0 /home/uke/oil
/home/uke/oil/_tmp/soil/logs/headless.txt
l-wx------ 1 uke uke 64 Feb 24 13:10 2 -> /home/uke/oil/_tmp/soil/logs/headless.txt
l-wx------ 1 uke uke 64 Feb 24 13:10 3 -> /home/uke/oil/_tmp/soil/INDEX.tsv
lrwx------ 1 uke uke 64 Feb 24 13:10 4 -> socket:[52438]
[headless_demo.py] stdout_fd = 6
child/server (PID 10051)
total 0
lrwx------ 1 uke uke 64 Feb 24 13:10 0 -> socket:[52439]
lrwx------ 1 uke uke 64 Feb 24 13:10 1 -> socket:[52439]
l-wx------ 1 uke uke 64 Feb 24 13:10 2 -> /home/uke/oil/_tmp/soil/logs/headless.txt
l-wx------ 1 uke uke 64 Feb 24 13:10 3 -> /home/uke/oil/_tmp/soil/INDEX.tsv
[FANOS] Connect stdin and stdout to one end of socketpair() and send control messages.  osh writes debug messages (like this one) to stderr.
[FANOS] received blob 'GETPID'
[headless_demo.py] reply b'OK 10051'
[FANOS] received blob 'EVAL echo hi'
[FANOS] received descriptor 7
[FANOS] received descriptor 8
[FANOS] received descriptor 9
[headless_demo.py] reply b'OK '
[FANOS] received blob 'EVAL echo !!'
[FANOS] received descriptor 7
[FANOS] received descriptor 8
[FANOS] received descriptor 9
[headless_demo.py] reply b'OK '
[FANOS] received blob 'EVAL echo one\necho two\necho three\n'
[FANOS] received descriptor 7
[FANOS] received descriptor 8
[FANOS] received descriptor 9
[headless_demo.py] reply b'OK '
[FANOS] received blob 'EVAL echo 1;\necho 2;\necho 3\n'
[FANOS] received descriptor 7
[FANOS] received descriptor 8
[FANOS] received descriptor 9
[headless_demo.py] reply b'OK '
[FANOS] received blob 'EVAL ( \necho subshell\n)\n'
[FANOS] received descriptor 7
[FANOS] received descriptor 8
[FANOS] received descriptor 9
[headless_demo.py] reply b'OK '
[FANOS] received blob 'EVAL ls --color=auto'
[FANOS] received descriptor 7
[FANOS] received descriptor 8
[FANOS] received descriptor 9
[headless_demo.py] reply b'OK '
[FANOS] received blob 'EVAL read x'
[FANOS] received descriptor 7
[FANOS] received descriptor 8
[FANOS] received descriptor 9
[headless_demo.py] reply b'OK '
[FANOS] received blob 'EVAL echo "x: $x"'
[FANOS] received descriptor 7
[FANOS] received descriptor 8
[FANOS] received descriptor 9
[headless_demo.py] reply b'OK '
[FANOS] received blob 'EVAL ('
[FANOS] received descriptor 7
[FANOS] received descriptor 8
[FANOS] received descriptor 9
[headless_demo.py] reply b'OK '
[FANOS] received blob 'EVAL zzZZ'
[FANOS] received descriptor 7
[FANOS] received descriptor 8
[FANOS] received descriptor 9
[headless_demo.py] reply b'OK '
[FANOS] received blob 'EVAL declare -X'
[FANOS] received descriptor 7
[FANOS] received descriptor 8
[FANOS] received descriptor 9
[headless_demo.py] reply b'OK '
[FANOS] received blob 'EVAL echo PS1=${PS1@P}'
[FANOS] received descriptor 7
[FANOS] received descriptor 8
[FANOS] received descriptor 9
[headless_demo.py] reply b'OK '
[FANOS] received blob 'EVAL echo $? $PWD'
[FANOS] received descriptor 7
[FANOS] received descriptor 8
[FANOS] received descriptor 9
[headless_demo.py] reply b'OK '
[FANOS] received blob 'EVAL break'
[FANOS] received descriptor 7
[FANOS] received descriptor 8
[FANOS] received descriptor 9
[headless_demo.py] reply b'OK '
[FANOS] received blob 'EVAL continue'
[FANOS] received descriptor 7
[FANOS] received descriptor 8
[FANOS] received descriptor 9
[headless_demo.py] reply b'OK '
[FANOS] received blob 'EVAL return'
[FANOS] received descriptor 7
[FANOS] received descriptor 8
[FANOS] received descriptor 9
[headless_demo.py] reply b'OK '
[FANOS] received blob 'EVAL exit'
[FANOS] received descriptor 7
[FANOS] received descriptor 8
[FANOS] received descriptor 9
[headless_demo.py] reply None

parent/client BEFORE (PID 10060)
total 0
lr-x------ 1 uke uke 64 Feb 24 13:10 0 -> /dev/null
l-wx------ 1 uke uke 64 Feb 24 13:10 1 -> /home/uke/oil/_tmp/soil/logs/headless.txt
l-wx------ 1 uke uke 64 Feb 24 13:10 2 -> /home/uke/oil/_tmp/soil/logs/headless.txt
l-wx------ 1 uke uke 64 Feb 24 13:10 3 -> /home/uke/oil/_tmp/soil/INDEX.tsv
lrwx------ 1 uke uke 64 Feb 24 13:10 4 -> socket:[51410]
lrwx------ 1 uke uke 64 Feb 24 13:10 5 -> socket:[51411]
parent/client AFTER (PID 10060)
total 0
lr-x------ 1 uke uke 64 Feb 24 13:10 0 -> /dev/null
l-wx------ 1 uke uke 64 Feb 24 13:10 1 -> /home/uke/oil/_tmp/soil/logs/headless.txt
l-wx------ 1 uke uke 64 Feb 24 13:10 2 -> /home/uke/oil/_tmp/soil/logs/headless.txt
l-wx------ 1 uke uke 64 Feb 24 13:10 3 -> /home/uke/oil/_tmp/soil/INDEX.tsv
lrwx------ 1 uke uke 64 Feb 24 13:10 4 -> socket:[51410]
[headless_demo.py] stdout_fd = 6
child/server (PID 10063)
total 0
lrwx------ 1 uke uke 64 Feb 24 13:10 0 -> socket:[51411]
lrwx------ 1 uke uke 64 Feb 24 13:10 1 -> socket:[51411]
l-wx------ 1 uke uke 64 Feb 24 13:10 2 -> /home/uke/oil/_tmp/soil/logs/headless.txt
l-wx------ 1 uke uke 64 Feb 24 13:10 3 -> /home/uke/oil/_tmp/soil/INDEX.tsv
[FANOS] Connect stdin and stdout to one end of socketpair() and send control messages.  osh writes debug messages (like this one) to stderr.
[FANOS] protocol error: Expected netstring length
[headless_demo.py] reply b'ERROR Expected netstring length'
status=1
parent/client BEFORE (PID 10070)
total 0
lr-x------ 1 uke uke 64 Feb 24 13:10 0 -> /dev/null
l-wx------ 1 uke uke 64 Feb 24 13:10 1 -> /home/uke/oil/_tmp/soil/logs/headless.txt
l-wx------ 1 uke uke 64 Feb 24 13:10 2 -> /home/uke/oil/_tmp/soil/logs/headless.txt
l-wx------ 1 uke uke 64 Feb 24 13:10 3 -> /home/uke/oil/_tmp/soil/INDEX.tsv
lrwx------ 1 uke uke 64 Feb 24 13:10 4 -> socket:[51429]
lrwx------ 1 uke uke 64 Feb 24 13:10 5 -> socket:[51430]
parent/client AFTER (PID 10070)
total 0
lr-x------ 1 uke uke 64 Feb 24 13:10 0 -> /dev/null
l-wx------ 1 uke uke 64 Feb 24 13:10 1 -> /home/uke/oil/_tmp/soil/logs/headless.txt
l-wx------ 1 uke uke 64 Feb 24 13:10 2 -> /home/uke/oil/_tmp/soil/logs/headless.txt
l-wx------ 1 uke uke 64 Feb 24 13:10 3 -> /home/uke/oil/_tmp/soil/INDEX.tsv
lrwx------ 1 uke uke 64 Feb 24 13:10 4 -> socket:[51429]
[headless_demo.py] stdout_fd = 6
child/server (PID 10073)
total 0
lrwx------ 1 uke uke 64 Feb 24 13:10 0 -> socket:[51430]
lrwx------ 1 uke uke 64 Feb 24 13:10 1 -> socket:[51430]
l-wx------ 1 uke uke 64 Feb 24 13:10 2 -> /home/uke/oil/_tmp/soil/logs/headless.txt
l-wx------ 1 uke uke 64 Feb 24 13:10 3 -> /home/uke/oil/_tmp/soil/INDEX.tsv
[FANOS] Connect stdin and stdout to one end of socketpair() and send control messages.  osh writes debug messages (like this one) to stderr.
[FANOS] received blob 'foo'
[FANOS] Invalid command 'foo'
[headless_demo.py] reply b"ERROR Invalid command 'foo'"
status=1
parent/client BEFORE (PID 10080)
total 0
lr-x------ 1 uke uke 64 Feb 24 13:10 0 -> /dev/null
l-wx------ 1 uke uke 64 Feb 24 13:10 1 -> /home/uke/oil/_tmp/soil/logs/headless.txt
l-wx------ 1 uke uke 64 Feb 24 13:10 2 -> /home/uke/oil/_tmp/soil/logs/headless.txt
l-wx------ 1 uke uke 64 Feb 24 13:10 3 -> /home/uke/oil/_tmp/soil/INDEX.tsv
lrwx------ 1 uke uke 64 Feb 24 13:10 4 -> socket:[49605]
lrwx------ 1 uke uke 64 Feb 24 13:10 5 -> socket:[49606]
parent/client AFTER (PID 10080)
total 0
lr-x------ 1 uke uke 64 Feb 24 13:10 0 -> /dev/null
l-wx------ 1 uke uke 64 Feb 24 13:10 1 -> /home/uke/oil/_tmp/soil/logs/headless.txt
l-wx------ 1 uke uke 64 Feb 24 13:10 2 -> /home/uke/oil/_tmp/soil/logs/headless.txt
l-wx------ 1 uke uke 64 Feb 24 13:10 3 -> /home/uke/oil/_tmp/soil/INDEX.tsv
lrwx------ 1 uke uke 64 Feb 24 13:10 4 -> socket:[49605]
[headless_demo.py] stdout_fd = 6
child/server (PID 10083)
total 0
lrwx------ 1 uke uke 64 Feb 24 13:10 0 -> socket:[49606]
lrwx------ 1 uke uke 64 Feb 24 13:10 1 -> socket:[49606]
l-wx------ 1 uke uke 64 Feb 24 13:10 2 -> /home/uke/oil/_tmp/soil/logs/headless.txt
l-wx------ 1 uke uke 64 Feb 24 13:10 3 -> /home/uke/oil/_tmp/soil/INDEX.tsv
[FANOS] Connect stdin and stdout to one end of socketpair() and send control messages.  osh writes debug messages (like this one) to stderr.
[FANOS] received blob 'ECMD'
[FANOS] Invalid command 'ECMD'
[headless_demo.py] reply b"ERROR Invalid command 'ECMD'"
status=1