On 10/16/2016 04:16 PM, enh wrote:
> I always assumed it was just the same literal T as in the ISO spec:
> https://en.m.wikipedia.org/wiki/ISO_8601

Yeah, I thought so too, but somebody's complaining about it, and busybox
is surprisingly broken:

  $ busybox touch -d 2012-01-02T12:34:56 walrus
  touch: invalid date '2012-01-02T12:34:56'
  $ busybox touch -d 2012-01-02-12:34:56 walrus

Meanwhile, ubuntu's touch seems to accept any letter there (upper or
lower case), and the posix-mandated single space (in the touch spec),
but barfs at punctuation. so the - busybox accepts above is not accepted
by ubuntu.

Right, posix says "space" and its examples use "T". I need to fix the
8-digit version of -t anyway, and have a TODO item to unify -d and -t,
so let's see what I can do there...

Toybox mailing list

Reply via email to