We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 69e96cb + 4d5b53a commit bd8fa03Copy full SHA for bd8fa03
bin/git-sed
@@ -70,7 +70,9 @@ all="$search$replacement$flags"
70
case "$all" in
71
*/*)
72
ascii="$(for((i=32;i<=127;i++)) do printf '%b' "\\$(printf '%03o' "$i")"; done)"
73
- sep="$(printf '%s' "$ascii" | tr -d "$all")"
+ escaped="${all//-/\\-}"
74
+ escaped="${escaped//[/\\[}"
75
+ sep="$(printf '%s' "$ascii" | tr -d "$escaped")"
76
sep="$(printf %.1s "$sep")"
77
if [ "X$sep" = "X" ] ; then
78
echo 'could not find an unused character for sed separator character'
0 commit comments