Stephane Bortzmeyer wrote:
When two or more same options are specified, the last one becomes
effective.
This is a specification.
And what is the rationale? Because it is surprising, I know no other
widely-used program which performs that way. Either they concatenate
the values or they spit out an error message.
ex) cut (coreutils) 4.5.3
$ echo abcdef | cut -d b -d e -f 1
abcd
This example might be environmental dependence.
As for -d option of the cut command, the last one becomes effective.
The first one is disregarded, and the error doesn't go out when the
plural is specified either.
But, It makes an error of -f option.
$ echo abcdf | cut -d e -f 1 -f 5
cut: only one type of list may be specified
Try `cut --help' for more information.
Ignoring silently something the user indicated seems a no-no for me.
It might be so.
However, because mounting is easy, it is such a specification
at present.
I may correct it with Namazu 2.2.X in the future.
--
=====================================================================
TADAMASA TERANISHI yw3t-trns(_at_)asahi-net(_dot_)or(_dot_)jp
http://www.asahi-net.or.jp/~yw3t-trns/index.htm
Key fingerprint = 474E 4D93 8E97 11F6 662D 8A42 17F5 52F4 10E7 D14E
_______________________________________________
Namazu-users-en mailing list
Namazu-users-en(_at_)namazu(_dot_)org
http://www.namazu.org/cgi-bin/mailman/listinfo/namazu-users-en