Somehow it's passing -l to the date command Standard output Executing command [ touch a.file ] Executing command [ ls -l a.file ] Standard error date: illegal option -- 1 usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... [-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format] Fail: regexp -rw-r--r--[[:space:]]+1[[:space:]]+tests[[:space:]]+nobody[[:space:]]+0[[:space:]]+[[:space:]]+a\.file not in stdout -rw-r--r-- 1 tests nobody 0 Oct 29 07:16 a.file
The error message appears to be complaining about -1 (one) not -l (ell)
Oh yes, console font fail. root@cavium:~ # touch a.file root@cavium:~ # stat -f "%B" -t "%s" a.file -1 root@cavium:~ # stat a.file 66 52 -rw-r--r-- 1 root wheel 0 0 "Oct 29 10:06:52 2015" "Oct 29 10:06:52 2015" "Oct 29 10:06:52 2015" "Dec 31 23:59:59 1969" 8192 0 0 a.file root@cavium:~ # date Thu Oct 29 10:07:47 UTC 2015
https://reviews.freebsd.org/D4040
Committed as r290205
A commit references this bug: Author: emaste Date: Fri Oct 30 20:14:32 UTC 2015 New revision: 290205 URL: https://svnweb.freebsd.org/changeset/base/290205 Log: Update ls -l tests to use mtime, not birthtime PR: 204155 Reviewed by: ngie, rodrigc Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D4040 Changes: head/bin/ls/tests/ls_tests.sh