aboutsummaryrefslogtreecommitdiff
path: root/dbook
diff options
context:
space:
mode:
Diffstat (limited to 'dbook')
-rwxr-xr-xdbook5
1 files changed, 4 insertions, 1 deletions
diff --git a/dbook b/dbook
index 3f7b693..487011e 100755
--- a/dbook
+++ b/dbook
@@ -99,7 +99,9 @@ rm_data()
data=
cl=
file=
+ oid_ifs="$IFS"
+ IFS=
while read -r line
do
cl="$line\n"
@@ -130,10 +132,11 @@ rm_data()
file="${file}${cl}"
done < "$book_conf"
+ IFS="$old_ifs"
# shellcheck disable=SC2059
printf "$file" > "$book_conf"
- unset read_name data file cl
+ unset read_name data file cl old_ifs
}
entry()