mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-21 18:25:14 +08:00
Remove grep warning from make target completion
grep was throwing warnings when no Makefile was found Signed-off-by: lledey <lledey@gmail.com>
This commit is contained in:
parent
ee113a5632
commit
69c6b007aa
@ -3,6 +3,6 @@ function __fish_print_make_targets
|
|||||||
# Some seds (e.g. on Mac OS X), don't support \n in the RHS
|
# Some seds (e.g. on Mac OS X), don't support \n in the RHS
|
||||||
# Use a literal newline instead
|
# Use a literal newline instead
|
||||||
# http://sed.sourceforge.net/sedfaq4.html#s4.1
|
# 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
|
/g' ^/dev/null
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user