mirror of
https://github.com/dylanaraps/shfm.git
synced 2026-12-05 21:58:41 +00:00
fix internatonal file names. Closes #8
This commit is contained in:
1 file changed
+2
-2
@@ -103,9 +103,9 @@ file_escape() {
|
|||||||
# loop over string char by char
|
# loop over string char by char
|
||||||
while c=${tmp%"${tmp#?}"}; do
|
while c=${tmp%"${tmp#?}"}; do
|
||||||
case $c in
|
case $c in
|
||||||
[[:print:]]) safe=$safe$c ;;
|
|
||||||
'') return ;;
|
'') return ;;
|
||||||
*) safe=$safe\? ;;
|
[[:cntrl:]]) safe=$safe\? ;;
|
||||||
|
*) safe=$safe$c ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
tmp=${tmp#?}
|
tmp=${tmp#?}
|
||||||
|
|||||||
Reference in new issue
Block a user