Ville Skyttä a87086b7d4 Turn off default compopt when completing dirs in _longopt().
Otherwise -o default kicks in in cases where we have no dir
completions and ends up completing files.
2011-04-24 19:54:50 +03:00

34 lines
406 B
Plaintext

proc setup {} {
save_env
}
proc teardown {} {
assert_env_unmodified
}
setup
assert_complete_any "mkdir "
sync_after_int
assert_complete {"bar bar.d/" foo.d/} "mkdir $::srcdir/fixtures/shared/default/"
sync_after_int
# No subdirs in foo.d and should not complete files in it (_longopt()).
assert_no_complete "mkdir $::srcdir/fixtures/shared/default/foo.d/"
sync_after_int
teardown