Fixed read to prevent mangling backslashes

This commit is contained in:
Ben Ashton 2022-09-03 02:27:48 -06:00
parent ff77585d33
commit b8803ef332

View File

@ -19,7 +19,7 @@ $ title='My Restaurant Randomizer';
<p>From the following restaurants:</p> <p>From the following restaurants:</p>
<ul> <ul>
# Loop through restaurants and display each one # Loop through restaurants and display each one
$ while read restaurant; do $ while read -r restaurant; do
<li><% $restaurant %></li> <li><% $restaurant %></li>
$ done <restaurants.txt $ done <restaurants.txt
</ul> </ul>