[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: remove some POSIXLY_CORRECT dependencies from coreutils

From: Paul Eggert
Subject: Re: remove some POSIXLY_CORRECT dependencies from coreutils
Date: Wed, 16 Jun 2004 16:39:21 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Jim Meyering <address@hidden> 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?)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]