calendar -t 0101 -f file Previously calendar's time processing routine directly modified the "0101" argument" which confused getopt. The time routines now make a copy of the argument to mess with.