~/oil/_clone/ble.sh ~/oil
ble.sh: insane environment: $USER is empty.
ble.sh: modified USER=uke
ble.sh: suspicious environment: $LANG is empty.
  shopt -s checkwinsize
  ^~~~~
out/ble.osh:2815: 'shopt' got invalid option 'checkwinsize'
ble/term.sh: updating tput cache for TERM=xterm... 
ble/term.sh: updating tput cache for TERM=xterm... done
osh warning: The 'RETURN' hook isn't implemented
real	8.058
user	7.752
sys	0.181
real	0.950
user	0.203
sys	0.018
    declare -i i=1
    ^~~~~~~
lib/test-util.sh:175: 'declare' doesn't implement flag -i (shopt --set ignore_flags_not_impl)
      declare -u u=a
      ^~~~~~~
lib/test-util.sh:181: Warning: OSH doesn't implement flags -l or -u (shopt --set ignore_flags_not_impl)
      declare -l l=B
      ^~~~~~~
lib/test-util.sh:182: Warning: OSH doesn't implement flags -l or -u (shopt --set ignore_flags_not_impl)
      declare -c c=c
              ^~
lib/test-util.sh:183: 'declare' doesn't accept flag -c

Running out/ble.osh --lib


DONE Running out/ble.osh --lib


Running lib/test-main.sh

lib/test-main.sh:25: set -o posix; f2;                 ret=$?; set +o posix
--- 1086.ret.expect	2025-03-06 04:23:24.038792576 +0000
+++ 1086.ret.result	2025-03-06 04:23:24.038792576 +0000
@@ -1 +1 @@
-0
+1

lib/test-main.sh:57: ! ble/bin#has ble_test_dummy_4
--- 1090.exit.expect	2025-03-06 04:23:24.251793442 +0000
+++ 1090.exit.result	2025-03-06 04:23:24.252793446 +0000
@@ -1 +1 @@
-0
+1

lib/test-main.sh:88: 
    ble/util/readlink f.txt
    [[ $ret != /* ]] && ret=${PWD%/}/$ret
--- 1093.ret.expect	2025-03-06 04:23:24.375793946 +0000
+++ 1093.ret.result	2025-03-06 04:23:24.376793950 +0000
@@ -1 +1 @@
-/tmp/blesh/1000/999.test/1093.d/ab/cd/ef/file.txt
+/tmp/blesh/1000/999.test/1093.d/ef/file.txt

lib/test-main.sh:110: 
    path=phys.link/1.txt
    ble/util/readlink/.resolve-physical-directory
    declare -p path PWD >&2
    [[ $path == */phys.dir/1.txt && $PWD == "$pwd" ]]
--- 1093.exit.expect	2025-03-06 04:23:24.576794567 +0000
+++ 1093.exit.result	2025-03-06 04:23:24.577794569 +0000
@@ -1 +1 @@
-0
+1
<STDERR>
declare -- path=/tmp/blesh/1000/999.test/1093.d/1.txt
declare -x PWD=/tmp/blesh/1000/999.test/1093.d
</STDERR>

lib/test-main.sh:131: [[ ${value//$pattern/$'\n'} == $'\n'hello$'\n' ]]
--- 1126.exit.expect	2025-03-06 04:23:24.662794745 +0000
+++ 1126.exit.result	2025-03-06 04:23:24.663794748 +0000
@@ -1 +1 @@
-0
+1

 82.7% [section] ble/main: 24/29 (5 fail, 0 crash, 0 skip)

DONE Running lib/test-main.sh


Running lib/test-util.sh

lib/test-util.sh:190: ble/variable#get-attr i; ret=$attr
--- 1137.ret.expect	2025-03-06 04:23:26.078797684 +0000
+++ 1137.ret.result	2025-03-06 04:23:26.078797684 +0000
@@ -1 +1 @@
-i
+

lib/test-util.sh:191: ble/variable#get-attr x; ret=$attr
--- 1137.ret.expect	2025-03-06 04:23:26.111797753 +0000
+++ 1137.ret.result	2025-03-06 04:23:26.111797753 +0000
@@ -1 +1 @@
-x
+

lib/test-util.sh:192: ble/variable#get-attr r; ret=$attr
--- 1137.ret.expect	2025-03-06 04:23:26.143797819 +0000
+++ 1137.ret.result	2025-03-06 04:23:26.144797821 +0000
@@ -1 +1 @@
-r
+

lib/test-util.sh:195: ble/variable#get-attr u; ret=$attr
--- 1137.ret.expect	2025-03-06 04:23:26.188797913 +0000
+++ 1137.ret.result	2025-03-06 04:23:26.189797915 +0000
@@ -1 +1 @@
-u
+

lib/test-util.sh:196: ble/variable#get-attr l; ret=$attr
--- 1137.ret.expect	2025-03-06 04:23:26.221797981 +0000
+++ 1137.ret.result	2025-03-06 04:23:26.222797983 +0000
@@ -1 +1 @@
-l
+

lib/test-util.sh:197: ble/variable#get-attr c; ret=$attr
--- 1137.ret.expect	2025-03-06 04:23:26.254798049 +0000
+++ 1137.ret.result	2025-03-06 04:23:26.254798049 +0000
@@ -1 +1 @@
-c
+

lib/test-util.sh:203: ble/variable#has-attr i i
--- 1137.exit.expect	2025-03-06 04:23:26.298798141 +0000
+++ 1137.exit.result	2025-03-06 04:23:26.299798143 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:204: ble/variable#has-attr x x
--- 1137.exit.expect	2025-03-06 04:23:26.332798211 +0000
+++ 1137.exit.result	2025-03-06 04:23:26.332798211 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:205: ble/variable#has-attr r r
--- 1137.exit.expect	2025-03-06 04:23:26.364798278 +0000
+++ 1137.exit.result	2025-03-06 04:23:26.364798278 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:212: ble/variable#has-attr u u
--- 1137.exit.expect	2025-03-06 04:23:26.452798460 +0000
+++ 1137.exit.result	2025-03-06 04:23:26.453798462 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:213: ble/variable#has-attr l l
--- 1137.exit.expect	2025-03-06 04:23:26.485798529 +0000
+++ 1137.exit.result	2025-03-06 04:23:26.485798529 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:214: ble/variable#has-attr c c
--- 1137.exit.expect	2025-03-06 04:23:26.517798595 +0000
+++ 1137.exit.result	2025-03-06 04:23:26.518798597 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:226: ble/is-inttype i
--- 1137.exit.expect	2025-03-06 04:23:26.607798782 +0000
+++ 1137.exit.result	2025-03-06 04:23:26.608798784 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:228: ble/is-readonly r
--- 1137.exit.expect	2025-03-06 04:23:26.652798875 +0000
+++ 1137.exit.result	2025-03-06 04:23:26.652798875 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:231: ble/is-transformed u
--- 1137.exit.expect	2025-03-06 04:23:26.696798967 +0000
+++ 1137.exit.result	2025-03-06 04:23:26.697798969 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:232: ble/is-transformed l
--- 1137.exit.expect	2025-03-06 04:23:26.728799033 +0000
+++ 1137.exit.result	2025-03-06 04:23:26.729799035 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:233: ble/is-transformed c
--- 1137.exit.expect	2025-03-06 04:23:26.761799102 +0000
+++ 1137.exit.result	2025-03-06 04:23:26.761799102 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:251: is-global v0
--- 1172.exit.expect	2025-03-06 04:23:26.823799230 +0000
+++ 1172.exit.result	2025-03-06 04:23:26.824799232 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:252: is-global v1
--- 1172.exit.expect	2025-03-06 04:23:26.861799309 +0000
+++ 1172.exit.result	2025-03-06 04:23:26.862799311 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:257: ble/variable#is-global v0
--- 1172.exit.expect	2025-03-06 04:23:26.952799498 +0000
+++ 1172.exit.result	2025-03-06 04:23:26.953799500 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:258: ble/variable#is-global v1
--- 1172.exit.expect	2025-03-06 04:23:26.990799577 +0000
+++ 1172.exit.result	2025-03-06 04:23:26.990799577 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:263: ble/variable#is-global v0u
--- 1172.exit.expect	2025-03-06 04:23:27.081799766 +0000
+++ 1172.exit.result	2025-03-06 04:23:27.081799766 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:265: ble/variable#is-global v1u
--- 1172.exit.expect	2025-03-06 04:23:27.118799843 +0000
+++ 1172.exit.result	2025-03-06 04:23:27.119799844 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:782: ble/string#quote-command echo hello world
--- 1228.ret.expect	2025-03-06 04:23:31.001808594 +0000
+++ 1228.ret.result	2025-03-06 04:23:31.001808594 +0000
@@ -1 +1 @@
-echo 'hello' 'world'
+echo hello world

lib/test-util.sh:784: ble/string#quote-command echo "'test'"
--- 1228.ret.expect	2025-03-06 04:23:31.045808741 +0000
+++ 1228.ret.result	2025-03-06 04:23:31.046808745 +0000
@@ -1 +1 @@
-echo ''\''test'\'''
+echo $'\'test\''

lib/test-util.sh:786: ble/string#quote-command echo a{1..4}
--- 1228.ret.expect	2025-03-06 04:23:31.090808892 +0000
+++ 1228.ret.result	2025-03-06 04:23:31.091808895 +0000
@@ -1 +1 @@
-echo 'a1' 'a2' 'a3' 'a4'
+echo a1 a2 a3 a4

lib/test-util.sh:790: ble/util/print-quoted-command echo hello world
--- 1228.stdout.expect	2025-03-06 04:23:31.147809083 +0000
+++ 1228.stdout.result	2025-03-06 04:23:31.148809086 +0000
@@ -1 +1 @@
-echo 'hello' 'world'
+echo hello world

lib/test-util.sh:792: ble/util/print-quoted-command echo "'test'"
--- 1228.stdout.expect	2025-03-06 04:23:31.193809236 +0000
+++ 1228.stdout.result	2025-03-06 04:23:31.194809240 +0000
@@ -1 +1 @@
-echo ''\''test'\'''
+echo $'\'test\''

lib/test-util.sh:794: ble/util/print-quoted-command echo a{1..4}
--- 1228.stdout.expect	2025-03-06 04:23:31.239809390 +0000
+++ 1228.stdout.result	2025-03-06 04:23:31.240809394 +0000
@@ -1 +1 @@
-echo 'a1' 'a2' 'a3' 'a4'
+echo a1 a2 a3 a4

lib/test-util.sh:843: ble/util/strlen α
--- 1243.ret.expect	2025-03-06 04:23:31.896811588 +0000
+++ 1243.ret.result	2025-03-06 04:23:31.896811588 +0000
@@ -1 +1 @@
-2
+1

lib/test-util.sh:844: ble/util/strlen αβγ
--- 1243.ret.expect	2025-03-06 04:23:31.929811698 +0000
+++ 1243.ret.result	2025-03-06 04:23:31.929811698 +0000
@@ -1 +1 @@
-6
+3

lib/test-util.sh:845: ble/util/strlen あ
--- 1243.ret.expect	2025-03-06 04:23:31.962811808 +0000
+++ 1243.ret.result	2025-03-06 04:23:31.962811808 +0000
@@ -1 +1 @@
-3
+1

lib/test-util.sh:846: ble/util/strlen あいう
--- 1243.ret.expect	2025-03-06 04:23:31.995811919 +0000
+++ 1243.ret.result	2025-03-06 04:23:31.996811922 +0000
@@ -1 +1 @@
-9
+3

lib/test-util.sh:847: ble/util/strlen aα
--- 1243.ret.expect	2025-03-06 04:23:32.028812029 +0000
+++ 1243.ret.result	2025-03-06 04:23:32.028812029 +0000
@@ -1 +1 @@
-3
+2

lib/test-util.sh:848: ble/util/strlen aαあ
--- 1243.ret.expect	2025-03-06 04:23:32.060812136 +0000
+++ 1243.ret.result	2025-03-06 04:23:32.061812140 +0000
@@ -1 +1 @@
-6
+3

lib/test-util.sh:852: ble/util/strlen α
--- 1243.re  ble/function#advice/original:f1
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
  ble/function#advice/original:f1
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
  ble/function#advice/original:f1
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
  ble/function#advice/original:f1
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
  ble/function#advice/original:f1
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
  ble/function#advice/original:f1
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
  ble/function#push/0:echo
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#push/0:echo' not found (OILS-ERR-100)
  ble/function#push/0:echo
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#push/0:echo' not found (OILS-ERR-100)
  ble/function#push/0:echo
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#push/0:echo' not found (OILS-ERR-100)
t.expect	2025-03-06 04:23:32.105812287 +0000
+++ 1243.ret.result	2025-03-06 04:23:32.105812287 +0000
@@ -1 +1 @@
-2
+1

lib/test-util.sh:853: ble/util/strlen あ
--- 1243.ret.expect	2025-03-06 04:23:32.138812397 +0000
+++ 1243.ret.result	2025-03-06 04:23:32.138812397 +0000
@@ -1 +1 @@
-3
+1

lib/test-util.sh:885: ble/util/substr あいう 0 3
--- 1260.ret.expect	2025-03-06 04:23:32.488813568 +0000
+++ 1260.ret.result	2025-03-06 04:23:32.488813568 +0000
@@ -1 +1 @@
-あ
+あいう

lib/test-util.sh:886: ble/util/substr あいう 3 6
--- 1260.ret.expect	2025-03-06 04:23:32.521813692 +0000
+++ 1260.ret.result	2025-03-06 04:23:32.521813692 +0000
@@ -1 +1 @@
-いう
+

lib/test-util.sh:1364: f1
--- 1342.stdout.expect	2025-03-06 04:23:38.316835470 +0000
+++ 1342.stdout.result	2025-03-06 04:23:38.316835470 +0000
@@ -1,2 +1 @@
 pre
-original
<STDERR>
    ble/function#advice/original:"${ADVICE_WORDS[@]}"
    ^~~
out/ble.osh:5028: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
</STDERR>

lib/test-util.sh:1366: f1
--- 1342.stdout.expect	2025-03-06 04:23:38.388835740 +0000
+++ 1342.stdout.result	2025-03-06 04:23:38.388835740 +0000
@@ -1,3 +1,2 @@
 pre
-original
 post
<STDERR>
    ble/function#advice/original:"${ADVICE_WORDS[@]}"
    ^~~
out/ble.osh:5028: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
</STDERR>

lib/test-util.sh:1368: f1
--- 1342.stdout.expect	2025-03-06 04:23:38.464836026 +0000
+++ 1342.stdout.result	2025-03-06 04:23:38.464836026 +0000
@@ -1,3 +1,2 @@
 A
-original
 post
<STDERR>
    ble/function#advice/original:"${ADVICE_WORDS[@]}"
    ^~~
out/ble.osh:5028: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
</STDERR>

lib/test-util.sh:1370: f1
--- 1342.stdout.expect	2025-03-06 04:23:38.533836285 +0000
+++ 1342.stdout.result	2025-03-06 04:23:38.534836289 +0000
@@ -1,3 +1,2 @@
 A
-original
 B
<STDERR>
    ble/function#advice/original:"${ADVICE_WORDS[@]}"
    ^~~
out/ble.osh:5028: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
</STDERR>

lib/test-util.sh:1372: f1
--- 1342.stdout.expect	2025-03-06 04:23:38.605836555 +0000
+++ 1342.stdout.result	2025-03-06 04:23:38.606836559 +0000
@@ -1,5 +1,4 @@
 A
 [
-original
 ]
 B
<STDERR>
    ble/function#advice/original:"${ADVICE_WORDS[@]}"
    ^~~
out/ble.osh:5028: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
</STDERR>

lib/test-util.sh:1378: f1
--- 1342.stdout.expect	2025-03-06 04:23:38.679836833 +0000
+++ 1342.stdout.result	2025-03-06 04:23:38.679836833 +0000
@@ -1,5 +1,4 @@
 A
 [
-original quick
 ]
 B
<STDERR>
    ble/function#advice/original:"${ADVICE_WORDS[@]}"
    ^~~
out/ble.osh:5028: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
</STDERR>

lib/test-util.sh:1381: f1
--- 1342.stdout.expect	2025-03-06 04:23:38.730837025 +0000
+++ 1342.stdout.result	2025-03-06 04:23:38.731837029 +0000
@@ -1 +1 @@
-original
+
--- 1342.exit.expect	2025-03-06 04:23:38.749837097 +0000
+++ 1342.exit.result	2025-03-06 04:23:38.750837100 +0000
@@ -1 +1 @@
-0
+127
<STDERR>
    ble/function#advice/original:"${ADVICE_WORDS[@]}"
    ^~~
out/ble.osh:5028: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
</STDERR>

lib/test-util.sh:1382: f1 1
--- 1342.stdout.expect	2025-03-06 04:23:38.795837269 +0000
+++ 1342.stdout.result	2025-03-06 04:23:38.796837273 +0000
@@ -1 +1 @@
-original 1
+
--- 1342.exit.expect	2025-03-06 04:23:38.814837341 +0000
+++ 1342.exit.result	2025-03-06 04:23:38.814837341 +0000
@@ -1 +1 @@
-0
+127
<STDERR>
    ble/function#advice/original:"${ADVICE_WORDS[@]}"
    ^~~
out/ble.osh:5028: 'ble/function#advice/original:f1' not found (OILS-ERR-100)
</STDERR>

lib/test-util.sh:1395: echo 1 2 3
--- 1363.stdout.expect	2025-03-06 04:23:38.941837818 +0000
+++ 1363.stdout.result	2025-03-06 04:23:38.941837818 +0000
@@ -1,3 +1,3 @@
 A
-(1 2 3)
+1 2 3
 Z

lib/test-util.sh:1397: echo 1 2 3
--- 1363.stdout.expect	2025-03-06 04:23:38.987837991 +0000
+++ 1363.stdout.result	2025-03-06 04:23:38.988837995 +0000
@@ -1,5 +1,3 @@
 [
-A
-(1 2 3)
-Z
+1 2 3
 ]

lib/test-util.sh:1400: echo 1 2 3
--- 1363.stdout.expect	2025-03-06 04:23:39ble/function#pop: echo is not a function.
ble/function#pop: echo is not a function.
    elif [[ -t ${!1} ]]; then
               ^~
out/ble.osh:5825: fatal: Invalid file descriptor ''
.033838164 +0000
+++ 1363.stdout.result	2025-03-06 04:23:39.034838168 +0000
@@ -1,3 +1 @@
-A
-(1 2 3)
-Z
+1 2 3

lib/test-util.sh:1402: echo 1 2 3
--- 1363.stdout.expect	2025-03-06 04:23:39.069838299 +0000
+++ 1363.stdout.result	2025-03-06 04:23:39.069838299 +0000
@@ -1 +1 @@
-(1 2 3)
+1 2 3

lib/test-util.sh:1404: echo 1 2 3
--- 1363.stdout.expect	2025-03-06 04:23:39.103838427 +0000
+++ 1363.stdout.result	2025-03-06 04:23:39.104838431 +0000
@@ -1 +1 @@
-[1 2 3]
+1 2 3

lib/test-util.sh:1405: ble/is-function echo
--- 1363.exit.expect	2025-03-06 04:23:39.135838547 +0000
+++ 1363.exit.result	2025-03-06 04:23:39.136838551 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:1406: ble/function#pop echo
--- 1363.exit.expect	2025-03-06 04:23:39.170838679 +0000
+++ 1363.exit.result	2025-03-06 04:23:39.171838682 +0000
@@ -1 +1 @@
-0
+1
<STDERR>
ble/function#pop: echo is not a function.
</STDERR>

lib/test-util.sh:1443: ble/util/sprintf ret "[%#.2g]" 27
--- 1379.ret.expect	2025-03-06 04:23:39.433839667 +0000
+++ 1379.ret.result	2025-03-06 04:23:39.433839667 +0000
@@ -1 +1 @@
-[27.]
+[1b]
<STDERR>
  [%#.2g]
    ^
[ printf arg at line 5263 of out/ble.osh ]:1

      builtin printf -v "$@"
                        ^
out/ble.osh:5263: osh printf doesn't support the '#' flag
</STDERR>

lib/test-util.sh:1444: ble/util/sprintf ret "[%#.2f]" 27
--- 1379.ret.expect	2025-03-06 04:23:39.468839799 +0000
+++ 1379.ret.result	2025-03-06 04:23:39.468839799 +0000
@@ -1 +1 @@
-[27.00]
+[1b]
<STDERR>
  [%#.2f]
    ^
[ printf arg at line 5263 of out/ble.osh ]:1

      builtin printf -v "$@"
                        ^
out/ble.osh:5263: osh printf doesn't support the '#' flag
</STDERR>

lib/test-util.sh:1482: ble/alias#expand aaa1
--- 1385.ret.expect	2025-03-06 04:23:39.687840622 +0000
+++ 1385.ret.result	2025-03-06 04:23:39.688840625 +0000
@@ -1 +1 @@
-aaa2 world
+aaa1

lib/test-util.sh:1484: ble/alias#expand aaa2
--- 1385.ret.expect	2025-03-06 04:23:39.720840746 +0000
+++ 1385.ret.result	2025-03-06 04:23:39.721840749 +0000
@@ -1 +1 @@
-aaa3 hello
+aaa2

lib/test-util.sh:1485: ble/alias#expand aaa1
--- 1385.ret.expect	2025-03-06 04:23:39.753840870 +0000
+++ 1385.ret.result	2025-03-06 04:23:39.754840873 +0000
@@ -1 +1 @@
-aaa2 world
+aaa1

lib/test-util.sh:1487: ble/alias#expand aaa3
--- 1385.ret.expect	2025-03-06 04:23:39.787840997 +0000
+++ 1385.ret.result	2025-03-06 04:23:39.787840997 +0000
@@ -1 +1 @@
-aaa4
+aaa3

lib/test-util.sh:1488: ble/alias#expand aaa2
--- 1385.ret.expect	2025-03-06 04:23:39.819841118 +0000
+++ 1385.ret.result	2025-03-06 04:23:39.820841121 +0000
@@ -1 +1 @@
-aaa3 hello
+aaa2

lib/test-util.sh:1489: ble/alias#expand aaa1
--- 1385.ret.expect	2025-03-06 04:23:39.851841238 +0000
+++ 1385.ret.result	2025-03-06 04:23:39.852841242 +0000
@@ -1 +1 @@
-aaa2 world
+aaa1

lib/test-util.sh:1491: ble/alias#expand aaa4
--- 1385.ret.expect	2025-03-06 04:23:39.884841362 +0000
+++ 1385.ret.result	2025-03-06 04:23:39.884841362 +0000
@@ -1 +1 @@
-echo
+aaa4

lib/test-util.sh:1492: ble/alias#expand aaa3
--- 1385.ret.expect	2025-03-06 04:23:39.916841482 +0000
+++ 1385.ret.result	2025-03-06 04:23:39.917841486 +0000
@@ -1 +1 @@
-aaa4
+aaa3

lib/test-util.sh:1493: ble/alias#expand aaa2
--- 1385.ret.expect	2025-03-06 04:23:39.948841602 +0000
+++ 1385.ret.result	2025-03-06 04:23:39.948841602 +0000
@@ -1 +1 @@
-aaa3 hello
+aaa2

lib/test-util.sh:1494: ble/alias#expand aaa1
--- 1385.ret.expect	2025-03-06 04:23:39.980841723 +0000
+++ 1385.ret.result	2025-03-06 04:23:39.980841723 +0000
@@ -1 +1 @@
-aaa2 world
+aaa1

lib/test-util.sh:1619: [[ ! ${v0+set} ]]
--- 1459.exit.expect	2025-03-06 04:23:40.929845107 +0000
+++ 1459.exit.result	2025-03-06 04:23:40.930845110 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:1620: status v1
--- 1459.stdout.expect	2025-03-06 04:23:40.963845220 +0000
+++ 1459.stdout.result	2025-03-06 04:23:40.964845224 +0000
@@ -1 +1 @@
-1:(123)
+1:(2)

lib/test-util.sh:1621: status v2
--- 1459.stdout.expect	2025-03-06 04:23:40.998845337 +0000
+++ 1459.stdout.result	2025-03-06 04:23:40.998845337 +0000
@@ -1 +1 @@
-3:(1 2 3)
+1:(3)

lib/test-util.sh:1622: stat  ble/function#push/0:ble/util/msleep
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#push/0:ble/util/msleep' not found (OILS-ERR-100)
[%1] PID 1509 Started
[%2] PID 1511 Started
    set -m; ble/bin/sleep 10 & pid3=$!; set +m
        ^~
lib/test-util.sh:1704: 'set' got invalid flag '-m'
[%3] PID 1513 Started
    set -m; ble/bin/sleep 10 & pid3=$!; set +m
                                            ^
lib/test-util.sh:1704: 'set' got invalid flag '-m'
  ble/function#push/0:ble/util/idle/IS_IDLE
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#push/0:ble/util/idle/IS_IDLE' not found (OILS-ERR-100)
us v3
--- 1459.stdout.expect	2025-03-06 04:23:41.031845447 +0000
+++ 1459.stdout.result	2025-03-06 04:23:41.032845451 +0000
@@ -1 +1 @@
-1:(bbb)
+3:(bbb)

lib/test-util.sh:1623: status v4
--- 1459.stdout.expect	2025-03-06 04:23:41.065845561 +0000
+++ 1459.stdout.result	2025-03-06 04:23:41.065845561 +0000
@@ -1 +1 @@
-1:(ccc)
+1:(5)

lib/test-util.sh:1635: ble/util/print-global-definitions value
--- 1459.stdout.expect	2025-03-06 04:23:41.136845798 +0000
+++ 1459.stdout.result	2025-03-06 04:23:41.137845801 +0000
@@ -1 +1 @@
-declare value='hello '\''world'\'''
+declare value; builtin unset -v value

lib/test-util.sh:1672: shopt -q failglob
--- 1476.exit.expect	2025-03-06 04:23:41.426846765 +0000
+++ 1476.exit.result	2025-03-06 04:23:41.427846769 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:1673: shopt -q nullglob
--- 1476.exit.expect	2025-03-06 04:23:41.459846875 +0000
+++ 1476.exit.result	2025-03-06 04:23:41.459846875 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:1674: shopt -q extglob
--- 1476.exit.expect	2025-03-06 04:23:41.490846979 +0000
+++ 1476.exit.result	2025-03-06 04:23:41.491846982 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:1685: ble-measure -q "ble/util/msleep 100"; echo "$ret usec" >&2; ((msec=ret/1000,90<=msec&&msec<=120))
--- 1486.exit.expect	2025-03-06 04:23:41.750847846 +0000
+++ 1486.exit.result	2025-03-06 04:23:41.750847846 +0000
@@ -1 +1 @@
-0
+1
<STDERR>
0 usec
</STDERR>

lib/test-util.sh:1686: ble-measure -q "ble/util/sleep 0.1"; echo "$ret usec" >&2; ((msec=ret/1000,90<=msec&&msec<=120))
--- 1486.exit.expect	2025-03-06 04:23:41.906848365 +0000
+++ 1486.exit.result	2025-03-06 04:23:41.907848369 +0000
@@ -1 +1 @@
-0
+1
<STDERR>
0 usec
</STDERR>

lib/test-util.sh:1694: ble/util/conditional-sync 'ble/bin/sleep 10' '((time<1000))' 100
--- 1493.stdout.expect	2025-03-06 04:23:51.988881877 +0000
+++ 1493.stdout.result	2025-03-06 04:23:51.988881877 +0000
@@ -1,10 +1 @@
 100
-200
-300
-400
-500
-600
-700
-800
-900
-1000
<STDERR>
[%1] PID 1495 Started
[%1] PID 1495 Done
</STDERR>

lib/test-util.sh:1696: ble/util/conditional-sync 'ble/bin/sleep 10' '((time<1000))' 100 progressive-weight
--- 1493.stdout.expect	2025-03-06 04:24:02.050915171 +0000
+++ 1493.stdout.result	2025-03-06 04:24:02.050915171 +0000
@@ -1,16 +1 @@
 1
-3
-7
-15
-31
-63
-127
-227
-327
-427
-527
-627
-727
-827
-927
-1027
<STDERR>
[%1] PID 1500 Started
[%1] PID 1500 Done
</STDERR>

lib/test-util.sh:1698: ble/util/conditional-sync 'ble/bin/sleep 10' 'true' 100 timeout=10
--- 1493.exit.expect	2025-03-06 04:24:12.106947242 +0000
+++ 1493.exit.result	2025-03-06 04:24:12.107947246 +0000
@@ -1 +1 @@
-142
+0
<STDERR>
[%1] PID 1505 Started
[%1] PID 1505 Done
</STDERR>

lib/test-util.sh:1713: kill -0 "$pid1"
--- 1493.exit.expect	2025-03-06 04:24:12.248947689 +0000
+++ 1493.exit.result	2025-03-06 04:24:12.248947689 +0000
@@ -1 +1 @@
-1
+0

lib/test-util.sh:1714: kill -0 "$pid2"
--- 1493.exit.expect	2025-03-06 04:24:12.286947809 +0000
+++ 1493.exit.result	2025-03-06 04:24:12.287947812 +0000
@@ -1 +1 @@
-1
+0

lib/test-util.sh:1715: kill -0 "$pid3"
--- 1493.exit.expect	2025-03-06 04:24:12.324947929 +0000
+++ 1493.exit.result	2025-03-06 04:24:12.324947929 +0000
@@ -1 +1 @@
-1
+0

lib/test-util.sh:1740: ble/util/get-pager ret
--- 1547.ret.expect	2025-03-06 04:24:12.580948739 +0000
+++ 1547.ret.result	2025-03-06 04:24:12.581948742 +0000
@@ -1 +1 @@
-less
+pager

lib/test-util.sh:1763: ble/util/buffer.flush
--- 1552.stdout.expect	2025-03-06 04:24:12.662949006 +0000
+++ 1552.stdout.result	2025-03-06 04:24:12.662949006 +0000
@@ -1 +1 @@
-helloworld
+

lib/test-util.sh:1767: ble/util/buffer.flush
--- 1552.stdout.expect	2025-03-06 04:24:12.708949155 +0000
+++ 1552.stdout.result	2025-03-06 04:24:12.708949155 +0000
@@ -1,2 +1 @@
-hello
-world
+

lib/test-util.sh:2016: ble/util/c2s 956; [[ $ret != μ ]]
--- 1565.exit.expect	2025-03-06 04:24:14.219954070 +0000
+++ 1565.exit.result	2025-03-06 04:24:14.219954070 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:2017: ble/util/c2s 12354; [[ $ret != あ ]]
--- 1565.exit.expect	2025-03-06 04:24:14.253954180 +0000
+++ 1565.exit.result	2025-0  ble/function#push/0:ble/util/.test-utf8-locale
  ^~~
[ eval arg at line 334 of out/ble.osh ]:1

    builtin eval -- "$1"; local ext=$?
            ^~~~
out/ble.osh:334: 'ble/function#push/0:ble/util/.test-utf8-locale' not found (OILS-ERR-100)
real	53.008
user	0.600
sys	0.118
real	0.602
user	0.088
sys	0.008
3-06 04:24:14.253954180 +0000
@@ -1 +1 @@
-0
+1

lib/test-util.sh:2047: ble/util/chars2s
--- 1571.ret.expect	2025-03-06 04:24:14.553955156 +0000
+++ 1571.ret.result	2025-03-06 04:24:14.554955159 +0000
@@ -1 +1 @@
-
+12354
<STDERR>
  \\U%08x
        ^
[ printf arg at line 11674 of out/ble.osh ]:1

        builtin printf -v ret '\\U%08x' "$@"
                              ^
out/ble.osh:11674: printf expected an integer, got ''
</STDERR>

lib/test-util.sh:2064: ble/util/keyseq2chars 'b\C-@c'; ret="${ret[*]}"
--- 1574.ret.expect	2025-03-06 04:24:15.584958509 +0000
+++ 1574.ret.result	2025-03-06 04:24:15.584958509 +0000
@@ -1 +1 @@
-98 0 99
+98 0

lib/test-util.sh:2064: ble/util/keyseq2chars 'b\C-ac'; ret="${ret[*]}"
--- 1574.ret.expect	2025-03-06 04:24:15.686958840 +0000
+++ 1574.ret.result	2025-03-06 04:24:15.687958844 +0000
@@ -1 +1 @@
-98 1 99
+98 1

lib/test-util.sh:2064: ble/util/keyseq2chars 'b\C-zc'; ret="${ret[*]}"
--- 1574.ret.expect	2025-03-06 04:24:15.788959172 +0000
+++ 1574.ret.result	2025-03-06 04:24:15.789959176 +0000
@@ -1 +1 @@
-98 26 99
+98 26

lib/test-util.sh:2064: ble/util/keyseq2chars 'b\C-]c'; ret="${ret[*]}"
--- 1574.ret.expect	2025-03-06 04:24:15.890959504 +0000
+++ 1574.ret.result	2025-03-06 04:24:15.891959507 +0000
@@ -1 +1 @@
-98 29 99
+98 29

lib/test-util.sh:2064: ble/util/keyseq2chars 'b\C-^c'; ret="${ret[*]}"
--- 1574.ret.expect	2025-03-06 04:24:15.992959836 +0000
+++ 1574.ret.result	2025-03-06 04:24:15.993959839 +0000
@@ -1 +1 @@
-98 30 99
+98 30

lib/test-util.sh:2064: ble/util/keyseq2chars 'b\C-_c'; ret="${ret[*]}"
--- 1574.ret.expect	2025-03-06 04:24:16.094960167 +0000
+++ 1574.ret.result	2025-03-06 04:24:16.094960167 +0000
@@ -1 +1 @@
-98 31 99
+98 31

lib/test-util.sh:2064: ble/util/keyseq2chars 'b\M-\C-@c'; ret="${ret[*]}"
--- 1574.ret.expect	2025-03-06 04:24:16.198960506 +0000
+++ 1574.ret.result	2025-03-06 04:24:16.198960506 +0000
@@ -1 +1 @@
-98 27 0 99
+98 27 0

 92.2% [section] ble/util: 1140/1236 (96 fail, 0 crash, 8 skip)

DONE Running lib/test-util.sh


Running lib/test-decode.sh

100.0% [section] ble/decode: 33/33 (0 fail, 0 crash, 0 skip)

DONE Running lib/test-decode.sh

~/oil
DONE