On Tue, Jan 17, 2012 at 02:46:21PM +0100, Martin Pelikan wrote:
> Here's one copy-paste error in awk(1).
> CVS log mentions some upstream; anyone have idea what that is? They may
> be interested...

As I just wrote in private, those parts aren't in bwk's upstream
code, so there's no point sending the diff to bwk.

The diff itself looks fine, anyway.

Ciao,
        Kili

> Index: run.c
> ===================================================================
> RCS file: /cvs/src/usr.bin/awk/run.c,v
> retrieving revision 1.33
> diff -u -p -r1.33 run.c
> --- run.c     28 Sep 2011 19:27:18 -0000      1.33
> +++ run.c     17 Jan 2012 13:42:19 -0000
> @@ -1546,7 +1546,7 @@ Cell *bltin(Node **a, int n)    /* builtin 
>               break;
>       case FXOR:
>               if (nextarg == 0) {
> -                     WARNING("or requires two arguments; returning 0");
> +                     WARNING("xor requires two arguments; returning 0");
>                       u = 0;
>                       break;
>               }
> @@ -1557,7 +1557,7 @@ Cell *bltin(Node **a, int n)    /* builtin 
>               break;
>       case FLSHIFT:
>               if (nextarg == 0) {
> -                     WARNING("or requires two arguments; returning 0");
> +                     WARNING("lshift requires two arguments; returning 0");
>                       u = 0;
>                       break;
>               }
> @@ -1568,7 +1568,7 @@ Cell *bltin(Node **a, int n)    /* builtin 
>               break;
>       case FRSHIFT:
>               if (nextarg == 0) {
> -                     WARNING("or requires two arguments; returning 0");
> +                     WARNING("rshift requires two arguments; returning 0");
>                       u = 0;
>                       break;
>               }

Reply via email to