Results for tilde.test.sh

statusoshosh_.pyosh_.cc
pass 121111
ok 111
FAIL 011
total131313
caseoshosh_.pyosh_.ccdescription
0pass pass pass ~ expansion in assignment
1pass pass pass ~ expansion in readonly assignment
2pass pass pass No ~ expansion in dynamic assignment
3pass pass pass No tilde expansion in word that looks like assignment but isn't
4pass FAIL FAIL tilde expansion of word after redirect
detailsdetails
5pass pass pass other user
6pass pass pass ${undef:-~}
7pass pass pass ${x//~/~root}
8pass pass pass x=foo:~ has tilde expansion
9pass pass pass a[x]=foo:~ has tilde expansion
10pass pass pass tilde expansion an assignment keyword
11ok ok ok x=${undef-~:~}
detailsdetailsdetails
12pass pass pass strict tilde
34 passed, 3 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

osh_.py4 tilde expansion of word after redirect

[osh_.py stdout] Expected '3\n', got ''
[osh_.py status] Expected 0, got 127

stdout:
stderr: 
  echo hi > ~/tilde1.txt
          ^
[ stdin ]:2: Can't open '/tilde1.txt': Permission denied
  cat $HOME/tilde1.txt | wc -c
                         ^~
[ stdin ]:3: 'wc' not found
cat: /tilde1.txt: No such file or directory
osh_.cc4 tilde expansion of word after redirect

[osh_.cc stdout] Expected '3\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed.
osh11 x=${undef-~:~}

stdout:
/home/bar:~:~
stderr:
osh_.py11 x=${undef-~:~}

stdout:
/home/bar:~:~
stderr:
osh_.cc11 x=${undef-~:~}

stdout:
/home/bar:~:~
stderr: