Skip to content

Commit 1a122fb

Browse files
committed
make: Use <<< instead of printf + pipe
1 parent b7ededc commit 1a122fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

completions/make

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ function _make_target_extract_script()
66
shift
77

88
local prefix="$1"
9-
local prefix_pat=$( printf "%s\n" "$prefix" | \
10-
command sed 's/[][\,.*^$(){}?+|/]/\\&/g' )
9+
local prefix_pat=$( command sed 's/[][\,.*^$(){}?+|/]/\\&/g' <<<"$prefix" )
1110
local basename=${prefix##*/}
1211
local dirname_len=$(( ${#prefix} - ${#basename} ))
1312

0 commit comments

Comments
 (0)