From 69c6b007aa5d478873cedf0330f1a48641581467 Mon Sep 17 00:00:00 2001 From: lledey Date: Mon, 19 Aug 2013 22:14:20 -0400 Subject: Remove grep warning from make target completion grep was throwing warnings when no Makefile was found Signed-off-by: lledey --- share/functions/__fish_print_make_targets.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') diff --git a/share/functions/__fish_print_make_targets.fish b/share/functions/__fish_print_make_targets.fish index bda806f4..5be984b8 100644 --- a/share/functions/__fish_print_make_targets.fish +++ b/share/functions/__fish_print_make_targets.fish @@ -3,6 +3,6 @@ function __fish_print_make_targets # Some seds (e.g. on Mac OS X), don't support \n in the RHS # Use a literal newline instead # http://sed.sourceforge.net/sedfaq4.html#s4.1 - sgrep -h -E '^[^#%=$[:space:]][^#%=$]*:([^=]|$)' $files | cut -d ":" -f 1 | sed -e 's/^ *//;s/ *$//;s/ */\\ + sgrep -h -E '^[^#%=$[:space:]][^#%=$]*:([^=]|$)' $files ^/dev/null | cut -d ":" -f 1 | sed -e 's/^ *//;s/ *$//;s/ */\\ /g' ^/dev/null end -- cgit v1.2.3