remove trailing whitespace

This commit is contained in:
David Paleino 2010-02-09 11:08:57 +01:00
parent 00560a88b4
commit 91a8ed2c1d

View File

@ -622,11 +622,11 @@ _filedir()
if [[ ${cur:0:1} != "'" ]]; then if [[ ${cur:0:1} != "'" ]]; then
[[ -d ${toks[i]} ]] && toks[i]="${toks[i]}"/ [[ -d ${toks[i]} ]] && toks[i]="${toks[i]}"/
if [[ ${cur:0:1} == '"' ]]; then if [[ ${cur:0:1} == '"' ]]; then
toks[i]=${toks[i]//\\/\\\\} toks[i]=${toks[i]//\\/\\\\}
toks[i]=${toks[i]//\"/\\\"} toks[i]=${toks[i]//\"/\\\"}
toks[i]=${toks[i]//\$/\\\$} toks[i]=${toks[i]//\$/\\\$}
else else
toks[i]=$(printf %q ${toks[i]}) toks[i]=$(printf %q ${toks[i]})
fi fi
fi fi
done done