Hi,
I found a bug with `date' command.
If I designated "--iso-8601" option with "seconds" parameter,
date command worked normally.
I, however, designated "-I" option with same parameter,
date command did not work, and complained. For example:
-----------------------
gotom@toro:~/debian/sample/shellutils/shellutils-2.0> date --iso-8601
2000-02-28
gotom@toro:~/debian/sample/shellutils/shellutils-2.0> date -I
2000-02-28
gotom@toro:~/debian/sample/shellutils/shellutils-2.0> date --iso-8601=seconds
2000-02-28T07:47:15+0900
gotom@toro:~/debian/sample/shellutils/shellutils-2.0> date -I seconds
date: invalid date `seconds'
gotom@toro:~/debian/sample/shellutils/shellutils-2.0> date -I=seconds
date: invalid argument `=seconds' for `--iso-8601'
Valid arguments are:
- `date'
- `hours'
- `minutes'
- `seconds'
Try `date --help' for more information.
-----------------------
"date -I seconds" did not work as same as "date --iso-8601=seconds".
Now, the simple patch to fix this problem:
-----------------------
--- src/date.c.org Mon Feb 28 07:15:38 2000
+++ src/date.c Mon Feb 28 08:04:10 2000
@@ -313,7 +313,7 @@
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- while ((optc = getopt_long (argc, argv, "d:f:I::r:Rs:u", long_options, NULL))
+ while ((optc = getopt_long (argc, argv, "d:f:I:r:Rs:u", long_options, NULL))
!= -1)
switch (optc)
{
-----------------------
Regards,
-- GOTO, Masanori