From de6e73a6cae79e8ccb1fed2d50a2e5ba2cf1dac6 Mon Sep 17 00:00:00 2001 From: Paul Ackersviller Date: Tue, 11 Dec 2007 00:13:03 +0000 Subject: Merge of 24192 by Vincent Lefevre: make GNU make support -include. --- Completion/Unix/Command/_make | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Completion') diff --git a/Completion/Unix/Command/_make b/Completion/Unix/Command/_make index 93d4b52da..95d7044e3 100644 --- a/Completion/Unix/Command/_make +++ b/Completion/Unix/Command/_make @@ -81,8 +81,8 @@ parseMakefile() { input=${input%%:*} print $(expandVars 10 $input) ;; - ($incl *) - local f=${input##$incl ##} + (${~incl} *) + local f=${input##${~incl} ##} if [[ $incl = '.include' ]]; then f=${f#[\"<]} f=${f%[\">]} @@ -125,7 +125,7 @@ findBasedir () { _pick_variant -r is_gnu gnu=GNU unix -v -f if [[ $is_gnu = gnu ]]; then - incl=include + incl="(-|)include" else incl=.include fi -- cgit 1.4.1