mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
Store output
Now we can explain which file printed the error
This commit is contained in:
parent
e358ec0ce2
commit
43459d1750
1 changed files with 4 additions and 2 deletions
|
@ -3,7 +3,9 @@
|
||||||
|
|
||||||
# No output is good output
|
# No output is good output
|
||||||
for f in $__fish_data_dir/completions/*.fish
|
for f in $__fish_data_dir/completions/*.fish
|
||||||
if command -q (string replace -r '.*/([^/]+).fish' '$1' $f)
|
if type -q (string replace -r '.*/([^/]+).fish' '$1' $f)
|
||||||
$fish $f
|
set -l out ($fish $f 2>&1 | string collect)
|
||||||
|
test -n "$out"
|
||||||
|
and echo -- OUTPUT from $f: $out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue