make: Make work in POSIX mode.
<(...) is not available in POSIX mode, and for example our test suite is run in that mode.
This commit is contained in:
parent
23406dcf20
commit
c0818b005a
@ -141,9 +141,11 @@ _make()
|
|||||||
mode=-d # display-only mode
|
mode=-d # display-only mode
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
local reset=$( set +o | grep -F posix ); set +o posix # for <(...)
|
||||||
COMPREPLY=( $( LC_ALL=C \
|
COMPREPLY=( $( LC_ALL=C \
|
||||||
make -npq "${makef[@]}" "${makef_dir[@]}" .DEFAULT 2>/dev/null | \
|
make -npq "${makef[@]}" "${makef_dir[@]}" .DEFAULT 2>/dev/null | \
|
||||||
sed -nrf <(_make_target_extract_script $mode "$cur") ) )
|
sed -nrf <(_make_target_extract_script $mode "$cur") ) )
|
||||||
|
$reset
|
||||||
|
|
||||||
if [[ $mode != -d ]]; then
|
if [[ $mode != -d ]]; then
|
||||||
# Completion will occur if there is only one suggestion
|
# Completion will occur if there is only one suggestion
|
||||||
|
Loading…
x
Reference in New Issue
Block a user