Store output

Now we can explain which file printed the error
This commit is contained in:
Fabian Homborg 2022-04-21 17:28:55 +02:00
parent e358ec0ce2
commit 43459d1750

View file

@ -3,7 +3,9 @@
# No output is good output
for f in $__fish_data_dir/completions/*.fish
if command -q (string replace -r '.*/([^/]+).fish' '$1' $f)
$fish $f
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