From: Ian Kelling Date: Tue, 12 Mar 2019 21:09:46 +0000 (-0400) Subject: safer line parsing X-Git-Url: https://iankelling.org/git/?p=small-misc-bash;a=commitdiff_plain;h=e92df2eade42653d73eabc545e7a78697e5a8b6b safer line parsing --- diff --git a/ll-function b/ll-function index 51f72ff..6deb916 100644 --- a/ll-function +++ b/ll-function @@ -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