Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Feb 1997 11:50:01 -0800 (PST)
From:      "Arne Henrik Juul" <arnej@imf.unit.no>
To:        freebsd-bugs
Subject:   Re: bin/2630: xargs does excessive and inconsistent argument splitting
Message-ID:  <199702201950.LAA03555@freefall.freebsd.org>

index | next in thread | raw e-mail

The following reply was made to PR bin/2630; it has been noted by GNATS.

From: "Arne Henrik Juul" <arnej@imf.unit.no>
To: FreeBSD-gnats-submit@freebsd.org
Cc:  Subject: Re: bin/2630: xargs does excessive and inconsistent argument splitting
Date: Thu, 20 Feb 1997 20:49:22 +0100

 Linting my changes a bit more I found a stupid bug, sorry
 for that; fixed below.
 Type information for main added to quiet gcc warnings.
 
  -arnej
 
 --- xargs.c.orig	Thu Feb 20 20:42:22 1997
 +++ xargs.c	Thu Feb 20 20:38:03 1997
 @@ -61,6 +61,7 @@
  void run __P((char **));
  void usage __P((void));
 
 +int
  main(argc, argv, env)
  	int argc;
  	char **argv, **env;
 @@ -89,7 +90,7 @@
  		/* 1 byte for each '\0' */
  		nline -= strlen(*ep++) + 1 + sizeof(*ep);
  	}
 -	nflag = xflag = 0;
 +	nflag = xflag = wasquoted = 0;
  	while ((ch = getopt(argc, argv, "0n:s:tx")) != EOF)
  		switch(ch) {
  		case 'n':


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702201950.LAA03555>