summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--completions/make2
1 files changed, 2 insertions, 0 deletions
diff --git a/completions/make b/completions/make
index 3a3d931c..b4ad9e73 100644
--- a/completions/make
+++ b/completions/make
@@ -141,9 +141,11 @@ _make()
mode=-d # display-only mode
fi
+ local reset=$( set +o | grep -F posix ); set +o posix # for <(...)
COMPREPLY=( $( LC_ALL=C \
make -npq "${makef[@]}" "${makef_dir[@]}" .DEFAULT 2>/dev/null | \
sed -nrf <(_make_target_extract_script $mode "$cur") ) )
+ $reset
if [[ $mode != -d ]]; then
# Completion will occur if there is only one suggestion