changeset 10:34563a7481c2

filesel: list correctly files with spaces
author David Demelier <markand@malikania.fr>
date Tue, 07 Nov 2017 12:29:28 +0100
parents cb9c1d42c201
children 416a0219249d
files dmenu_filesel
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dmenu_filesel	Tue Nov 07 12:04:08 2017 +0100
+++ b/dmenu_filesel	Tue Nov 07 12:29:28 2017 +0100
@@ -34,7 +34,7 @@
     if [ -n "$(ls -A ${root})" ]; then
         # TODO: Add some filters.
         for i in ${root}*; do
-            list="${list}$(basename ${i})\n"
+            list="${list}$(basename "${i}")\n"
         done
     fi