We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7ededc commit 1a122fbCopy full SHA for 1a122fb
completions/make
@@ -6,8 +6,7 @@ function _make_target_extract_script()
6
shift
7
8
local prefix="$1"
9
- local prefix_pat=$( printf "%s\n" "$prefix" | \
10
- command sed 's/[][\,.*^$(){}?+|/]/\\&/g' )
+ local prefix_pat=$( command sed 's/[][\,.*^$(){}?+|/]/\\&/g' <<<"$prefix" )
11
local basename=${prefix##*/}
12
local dirname_len=$(( ${#prefix} - ${#basename} ))
13
0 commit comments