safer line parsing
authorIan Kelling <iank@fsf.org>
Tue, 12 Mar 2019 21:09:46 +0000 (17:09 -0400)
committerIan Kelling <iank@fsf.org>
Tue, 12 Mar 2019 21:09:46 +0000 (17:09 -0400)
ll-function

index 51f72ffec1a093571ffd6b139e1bfcf6e1c96b52..6deb916139e8988c80ef136ace26f2b2f23447b5 100644 (file)
@@ -44,7 +44,7 @@ EOF
     #  + for any other kind of acl
     #  or blank for no other kind of acl
     #  I don't want to see this generally.
-    while read line; do
+    while read -r line; do
         # if we did want the first line, it would need to be stripped of non-printing chars:
        #line=${line#$'\E[00m'}
         # lines like "total 123M", we don't want