From: Arun Prakash Jana Date: Tue, 15 Dec 2020 17:21:25 +0000 (+0530) Subject: Fix togglex: handle filenames with spaces X-Git-Tag: v3.6~37 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=9946b371777f36d57306da4503a8d73776595a7a;p=nnn.git Fix togglex: handle filenames with spaces --- diff --git a/plugins/togglex b/plugins/togglex index e2a23f41..d65e00f2 100755 --- a/plugins/togglex +++ b/plugins/togglex @@ -17,4 +17,4 @@ if [ ! -s "$selection" ]; then exit fi -xargs -0 -I {} sh -c 'if [ -x {} ] ; then chmod -x {} ; else chmod +x {} ; fi' < "$selection" +xargs -0 -I {} sh -c 'if [ -x "{}" ] ; then chmod -x "{}" ; else chmod +x "{}" ; fi' < "$selection"