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
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to