fish-shell/tests/checks/check-completions.fish
Johannes Altmanninger 1e858eae35 tests: filter control sequences only when interactive
This demonstrates that we only write control sequences when interactive.
2024-04-12 12:28:22 +02:00

11 lines
349 B
Fish

#RUN: %fish -C 'set -l fish %fish' %s
# Test all completions where the command exists
# No output is good output
for f in $__fish_data_dir/completions/*.fish
if type -q (string replace -r '.*/([^/]+).fish' '$1' $f)
set -l out (source $f 2>&1 | string collect)
test -n "$out"
and echo -- OUTPUT from $f: $out
end
end