From a91bec1df9e751dccb7e90399338c1d9b8cbc234 Mon Sep 17 00:00:00 2001 From: Matthias Bach Date: Sat, 10 Mar 2018 20:35:24 +0100 Subject: [PATCH] Fix Bash completion if PWD contains whitespace The script used ${PWD} without proper quoting causing Bash completion to not work properly if there was whitespace in the path of the current working directory. --- dist/osc.complete | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dist/osc.complete b/dist/osc.complete index bf4f6065..8ca3afd5 100755 --- a/dist/osc.complete +++ b/dist/osc.complete @@ -87,14 +87,14 @@ lnkprj="" lnkpkg="" apiurl="" alias="" -test -s ${PWD}/.osc/_project && read -t 1 oscprj < ${PWD}/.osc/_project -test -s ${PWD}/.osc/_package && read -t 1 oscpkg < ${PWD}/.osc/_package -if test -s ${PWD}/.osc/_files ; then - lnkprj=$(command sed -rn '/ /dev/null) fi if test "${cmdline[0]}" = isc ; then