From 17765e0ab1e55667adde66c997869787d51847e3 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 13 Nov 2021 22:14:53 +0100 Subject: set IFS for reading, so we also get \t's --- alpine-to-carddav | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alpine-to-carddav b/alpine-to-carddav index 5d2938f..0948616 100755 --- a/alpine-to-carddav +++ b/alpine-to-carddav @@ -38,7 +38,7 @@ print_cnt() { read_line() { local line - read -r line + IFS='' read -r line for key in "${alpine_keys[@]}"; do eval "${1}${key}"'="${line%%'"$(printf '\t')"'*}"' eval 'line="${line#${'"${1}${key}"'}}"' @@ -56,7 +56,7 @@ git -C "${git_dir}" diff -U0 -- addressbook \ 1,/^+++/d $ s#$#\n@@ # ' \ -| while read line; do +| while IFS='' read -r line; do case "${line}" in '@@ '*) for last_uid in "${last_uids[@]}"; do -- cgit v1.2.3-70-g09d2