Skip to content

Commit

Permalink
util (ble/string#escape-for-bash-specialchars): fix escaping of TAB
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Jun 27, 2022
1 parent 02aeb4a commit accf8f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.sh
Expand Up @@ -737,7 +737,7 @@ function ble/string#escape-for-bash-specialchars {
local a b
a=']' b=\\$a ret=${ret//"$a"/$b}
a=$'\n' b="\$'\n'" ret=${ret//"$a"/$b}
a=$'\t' b=$' \t' ret=${ret//"$a"/$b}
a=$'\t' b=$'\\\t' ret=${ret//"$a"/$b}
fi

# 上の処理で extglob の ( も quote されてしまうので G の時には戻す。
Expand Down

0 comments on commit accf8f3

Please sign in to comment.