Fix tag command, using IFS is a *bad* idea

This commit is contained in:
Maxime Coste 2014-10-23 19:25:39 +01:00
parent 3e797a3d15
commit a6d73bb928

View File

@ -12,8 +12,7 @@ def -shell-params \
%{ %sh{ %{ %sh{
export tagname=${1:-${kak_selection}} export tagname=${1:-${kak_selection}}
( (
IFS=':' for tags in $(echo "${kak_opt_ctagsfiles}" | tr ':' '\n'); do
for tags in ${kak_opt_ctagsfiles}; do
readtags -t "${tags}" ${tagname} readtags -t "${tags}" ${tagname}
done done
) | awk -F '\t|\n' -e ' ) | awk -F '\t|\n' -e '