Add empty IFS for single var reads

This commit is contained in:
Lucas Gabriel Vuotto 2024-02-05 16:06:50 +00:00
parent 134c479e36
commit 49d068aad3
6 changed files with 7 additions and 7 deletions

View file

@ -38,7 +38,7 @@ FACESIZES="8.0 4.0 6.0 7.0 8.0 9.0 10.0 12.0"
basedpi=$(xdpyinfo | grep '^ resolution:' | {
min=
while read -r line; do
while IFS= read -r line; do
set -- $line
dpi_x=${2%%x*}
dpi_y=${2##*x}
@ -66,7 +66,7 @@ for facesize in $FACESIZES; do
done | bc -l | {
i=0
printf "Xft.dpi:\t%.1f\n" "$targetdpi"
while read -r v; do
while IFS= read -r v; do
if [ $i -eq 0 ]; then
printf "XTerm.VT100.faceSize:\t%f\n" "$v"
else