]> git.corax.cc Git - toolbox/commit
include/log: Don't mangle whitespaces
authorMatthias Kruk <m@m10k.eu>
Tue, 15 Feb 2022 01:33:36 +0000 (10:33 +0900)
committerMatthias Kruk <m@m10k.eu>
Tue, 15 Feb 2022 01:33:36 +0000 (10:33 +0900)
commit1eb716c232d999ba31e9d16d2abff7ebd295811a
tree53a38ccb0e7d91b8b5a6677d48b57b32bed94e32
parent9a2c3df836641d552e6223fafe623e7e9e95819d
include/log: Don't mangle whitespaces

Because IFS is not set in `_log_write()`, logging functions silently
drop whitespace from the beginning and end of each line.

This commit modifies `_log_write()` to set IFS to the empty string
when invoking `read`, so that whitespaces are not stripped.
include/log.sh