I am using the date command to process dates from a text file in the typical American "mm/dd/yyyy" format. The date command chokes if I pass such a date with -d for reformatting; likewise, dashes aren't accepted at all either. I am having to pipe through tr -d / before giving the date, but GNU coreutils 8.19 gladly accepts the same date with separators. I'm confused by the code for date.c and I'm not quite sure what to change to add compatibility, so I thought I should at least mention it here. It may even be a bug in the code, since I see at least one strspn call with 0123456789 as permissible characters.
While my script works with the tr command plugged in, it's a minor incompatibility that I had to handle when moving a script from its GNU testing machine, and I imagine I can't be the only one hit by it. Regards, Jody Lee Bruchon _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
