From c0818b005ab8056bd4bb0a1894bfcd7de148238e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 5 Feb 2013 21:30:36 +0200 Subject: [PATCH] make: Make work in POSIX mode. <(...) is not available in POSIX mode, and for example our test suite is run in that mode. --- completions/make | 2 ++ 1 file changed, 2 insertions(+) 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