- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.9k
 
SC3061
        Grische edited this page Jul 30, 2025 
        ·
        2 revisions
      
    while read -r;
do
    echo "line: ${REPLY}"
done < foolistAdd a variable to read and use it later on:
while read -r foo;
do
    echo "line: ${foo}"
done < foolistThis behavior is not allowed in POSIX.
None. This warning is not emitted in ksh or bash where read can be used without an argument.