This commit is contained in:
Dylan Araps committed 2020-08-04 12:11:32 +03:00
1 parent 08ef84c948
commit 8edc56d3aa
1 file changed
+2 -1
+2 -1
View File
@@ -28,11 +28,12 @@ file_escape() {
tmp=$1 safe=
# loop over string char by char
while [ "$tmp" ]; do
while :; do
c=${tmp%"${tmp#?}"*}
case $c in
[[:print:]]) safe=$safe$c ;;
'') return ;;
*) safe=$safe\? ;;
esac