Results for builtin-completion.test.sh

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

[osh_ALT 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