From 0e7634fee188d25165661044c3eb719e333d6ca3 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 21 Mar 2019 15:58:08 -0400 Subject: tools/mtime.sh: Parse ls output with read, not cut cut treats multiple delimiter characters as empty fields, increasing the field count an indeterminate amount for fields with whitespace delimiter padding. BusyBox's ls outputs: -rw-r--r-- 1 1000 1000 1935 Mar 16 16:31 man/opkbuild.1in cut counts the owner field, not the month, as field 6. And fields 7 and 8 are empty. The shell interpreter's field splitting is better suited for this job, so just use read. --- (limited to 'locale') -- cgit v0.9.1