Jim Meyering <[EMAIL PROTECTED]> writes:

> does some standard specify how `yes' must behave?

Not as far as I know.  It's not in POSIX.  However, POSIX suggests
that new utilities conform to the standard conventions, and in that
case "yes --" should be equivalent to plain "yes", which in turn is
equivalent to "yes y".

I think it'll be fine if GNU "yes" uses the same conventions as other
typical GNU programs.  Nobody will care, frankly.  Already GNU "yes"
is incompatible with 7th Edition Unix "yes", as "yes a b" repeatedly
outputs "a b" with GNU yes, but merely "a" with Version 7, and nobody
cares about this either.

FYI, here's the source code to V7 yes:

main(argc, argv)
char **argv;
{
 for (;;)
  printf("%s\n", argc>1? argv[1]: "y");
} 

(Life was simpler back in the good old days, huh?)


_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to