Trim leading whitespace from find(1) output, missed in previous.
authoranton <anton@openbsd.org>
Tue, 11 Jul 2023 06:09:32 +0000 (06:09 +0000)
committeranton <anton@openbsd.org>
Tue, 11 Jul 2023 06:09:32 +0000 (06:09 +0000)
regress/usr.bin/rsync/lib.sh

index 6d7b51b..3ed63c8 100644 (file)
@@ -70,7 +70,7 @@ findme ()
         #    2: size in blocks
         # 8-10: last modification time
         find "$@" -ls |
-        sed -e 's/[[:space:]][[:space:]]*/ /g' |
+        sed -e 's/^[[:space:]]*//' -e 's/[[:space:]][[:space:]]*/ /g' |
         cut -d ' ' -f 3-7,11- |
         sort
     )