If you are wondering why?, this might satisfy your curiosity.
If you work with files which may or may not end up with a new line at end, you can do this:
while IFS= read -r line || [ -n "$line" ]; do
echo "$line"
done <file
Or this:
while IFS= read -r line; do
echo "$line"
done < <(grep "" file)
Read more:
- https://stackoverflow.com/a/31397497/3744681
- https://stackoverflow.com/a/31398490/3744681