fish-shell/tests/checks/check-completions.fish
Fabian Homborg 43459d1750 Store output
Now we can explain which file printed the error
2022-04-21 17:29:00 +02:00

11 lines
348 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 ($fish $f 2>&1 | string collect)
test -n "$out"
and echo -- OUTPUT from $f: $out
end
end