[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2.0-128-g0837ad0

Ville Skyttä ville.skytta at iki.fi
Tue Feb 5 19:43:13 UTC 2013


The following commit has been merged in the master branch:
commit c0818b005ab8056bd4bb0a1894bfcd7de148238e
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue Feb 5 21:30:36 2013 +0200

    make: Make work in POSIX mode.
    
    <(...) is not available in POSIX mode, and for example our test suite
    is run in that mode.

diff --git a/completions/make b/completions/make
index 3a3d931..b4ad9e7 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

-- 
bash-completion



More information about the Bash-completion-commits mailing list