[bug] date: corner case

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Sun Apr 27 05:13:01 PDT 2008


Expected behaviour:

# ./busybox date +%c
Sun Apr 27 14:08:15 2008
# ./busybox date %+c
date: invalid date '%+c'

Also expected:

# ./busybox date -d 01231133 +%c
Wed Jan 23 11:33:00 2008

But this should return error status, as '+' and '%' are swapped:

# ./busybox date -d 01231133 %+c
Wed Jan 23 11:33:00 CET 2008
# echo $?
0


Cheers,

-- 
Cristian


More information about the busybox mailing list