7 Nov
2012
7 Nov
'12
4:05 p.m.
Interpret exscape sequences in the filessytem target while unmounting. Having recursive unmount would be probably better (see falconindy's comment on the bug), but IMO this workaround is good enough. --- functions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions b/functions index febcb25..16a6cd1 100644 --- a/functions +++ b/functions @@ -645,6 +645,8 @@ umount_all() { findmnt -mrunRo TARGET,FSTYPE,OPTIONS / | { while read -r target fstype options; do + # interpret the ascii chars, such as \x20 (space) + printf -v target '%b' "$target" # match only targeted fstypes if [[ $1 && $1 != "$fstype" ]]; then continue -- 1.8.0