diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2013-02-05 21:30:36 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2013-02-05 21:42:04 +0200 |
commit | c0818b005ab8056bd4bb0a1894bfcd7de148238e (patch) | |
tree | 2de1ca9b2e71e87312a91c23010d9c4c17cf1f80 | |
parent | 23406dcf20f4718775e8556766be7d55a879a4be (diff) | |
download | bash-completion-c0818b005ab8056bd4bb0a1894bfcd7de148238e.tar.gz |
make: Make work in POSIX mode.
<(...) is not available in POSIX mode, and for example our test suite
is run in that mode.
-rw-r--r-- | completions/make | 2 |
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 |