diff options
author | lledey <lledey@gmail.com> | 2013-08-19 22:14:20 -0400 |
---|---|---|
committer | lledey <lledey@gmail.com> | 2013-08-19 22:14:20 -0400 |
commit | 69c6b007aa5d478873cedf0330f1a48641581467 (patch) | |
tree | 24ea94c18d89e6818d5825f5f9edd70406e08035 /share | |
parent | ee113a5632a407f5ccf6767152d50ea2aae57675 (diff) |
Remove grep warning from make target completion
grep was throwing warnings when no Makefile was found
Signed-off-by: lledey <lledey@gmail.com>
Diffstat (limited to 'share')
-rw-r--r-- | share/functions/__fish_print_make_targets.fish | 2 |
1 files changed, 1 insertions, 1 deletions
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 |