Skip to content

Commit f5d99f2

Browse files
graywolfscop
authored andcommitted
ri: hush some warnings
Closes #343
1 parent d10dcdf commit f5d99f2

File tree

1 file changed

+1
-1
lines changed
  • completions

1 file changed

+1
-1
lines changed

completions/ri

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ _ri_get_methods()
2323
# older versions of ri didn't distinguish between class/module and
2424
# instance methods
2525
COMPREPLY+=( \
26-
"$(ruby -W0 $ri_path "${classes[@]}" | ruby -ane \
26+
"$(ruby -W0 $ri_path "${classes[@]}" 2>/dev/null | ruby -ane \
2727
'if /^-/.../^-/ and ! /^-/ and ! /^ +(class|module): / then \
2828
print $_.split(/, |,$| +/).grep(/^[^\[]*$/).join("\n"); \
2929
end' | sort -u)" )

0 commit comments

Comments
 (0)