Mercurial > vim-gutentags
changeset 266:1b74fb3819e1
(fix) update_tags: eval ad quotes
author | Tokubara <1270802817@qq.com> |
---|---|
date | Fri, 25 Feb 2022 22:12:42 +0800 |
parents | cbe7ffc327a4 |
children | 6030953258fe |
files | plat/unix/update_tags.sh |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plat/unix/update_tags.sh Fri May 22 13:53:25 2020 -0700 +++ b/plat/unix/update_tags.sh Fri Feb 25 22:12:42 2022 +0800 @@ -111,12 +111,12 @@ if [ "${PROJECT_ROOT}" = "." ] || [ $FILE_LIST_CMD_IS_ABSOLUTE -eq 1 ]; then echo "Running file list command" echo "eval $FILE_LIST_CMD > \"${TAGS_FILE}.files\"" - eval $FILE_LIST_CMD > "${TAGS_FILE}.files" + eval "$FILE_LIST_CMD" > "${TAGS_FILE}.files" else # If using a tags cache directory, use absolute paths echo "Running file list command, patching for absolute paths" echo "eval $FILE_LIST_CMD" - eval $FILE_LIST_CMD | while read -r l; do + eval "$FILE_LIST_CMD" | while read -r l; do echo "${PROJECT_ROOT%/}/${l}" done > "${TAGS_FILE}.files" fi