date is now too strict about argument ordering. This was working in 0.2.2 as shipped with Ubuntu but in 0.6.0 it broke again
date "+%Y%m%d%H%M%S" --date "@$(date +%s)"
errors with date: extra operand '--date' - it does work if you reorder the arguments as date --date "@$(date +%s)" "+%Y%m%d%H%M%S"
Found this while trying to build systemd as they use the arguments in this order.
date is now too strict about argument ordering. This was working in 0.2.2 as shipped with Ubuntu but in 0.6.0 it broke again
errors with
date: extra operand '--date'- it does work if you reorder the arguments asdate --date "@$(date +%s)" "+%Y%m%d%H%M%S"Found this while trying to build systemd as they use the arguments in this order.