Results for builtin-completion.test.sh

statusbashosh
pass 3436
BUG 30
FAIL 01
total3737
casebashoshdescription
0pass pass -A function prints functions
1pass pass Invalid syntax
2pass pass how compgen calls completion functions
3pass pass complete -o -F (git)
4pass pass compopt with invalid syntax
5pass pass compopt fails when not in completion function
6pass pass compgen -f on invalid dir
7pass pass compgen -f
8pass pass compgen -v with local vars
9pass pass compgen -v on unknown var
10pass pass compgen -v P
11pass pass compgen with actions: function / variable / file
12pass pass compgen with actions: alias, setopt
13pass pass compgen with actions: shopt
14pass pass compgen with action and suffix: helptopic
15pass pass compgen -A directory
16pass pass compgen -A file
17pass pass compgen -A user
18pass pass compgen -A command completes external commands
19pass pass compgen -A command completes functions and aliases
20pass pass compgen -A command completes builtins and keywords
21BUG pass complete with nonexistent function
details
22BUG pass complete with no action
details
23pass pass -o filenames and -o nospace have no effect with compgen
24pass pass -o plusdirs and -o dirnames with compgen
25pass pass compgen -o default completes files and dirs
26pass pass compgen doesn't respect -X for user-defined functions
27pass pass compgen -W words -X filter
28pass pass compgen -f -X filter -- $cur
29pass pass compgen doesn't need shell quoting
30pass pass compgen -W 'one two three'
31pass pass compgen -W evaluates code in $()
32pass pass compgen -W uses IFS, and delimiters are escaped with \
33BUG pass Parse errors for compgen -W and complete -W
details
34pass pass Runtime errors for compgen -W
35pass FAIL Runtime errors for compgen -F func
details
36pass pass compgen -W '' cmd is not a usage error
70 passed, 0 OK, 0 not implemented, 3 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

bash21 complete with nonexistent function

stdout:
status=0
stderr:
bash22 complete with no action

stdout:
status=0
stderr:
bash33 Parse errors for compgen -W and complete -W

stdout:
status=1
status=0
stderr:
/home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: ${: bad substitution
osh35 Runtime errors for compgen -F func

[osh stdout] Expected 'status=1\n', got 'foo\nbar\nstatus=0\n'

stdout:
foo
bar
status=0
stderr:
    COMPREPLY+=( $(( 1 / 0 )) )  # FATAL, but we still have candidates
                         ^
[ stdin ]:3: Divide by zero