Date: Thu, 1 Apr 1999 18:55:43 -0500 (EST) From: Randall Hopper <aa8vb@ipass.net> To: FreeBSD-gnats-submit@freebsd.org Cc: aa8vb@ipass.net Subject: bin/10914: "xargs" parsing bug Message-ID: <199904012355.SAA05429@stealth.dummynet.>
next in thread | raw e-mail | index | archive | help
>Number: 10914 >Category: bin >Synopsis: "xargs" parsing bug >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 1 16:00:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: Randall Hopper >Release: FreeBSD 3.0-RELEASE i386 >Organization: self >Environment: Stock 3.0-RELEASE >Description: This cmd works fine on Solaris, Linux, etc.: echo "dhopper.dummynet.:0 MIT-MAGIC-COOKIE-1 00000000000000000000000000000\ 000" | xargs xauth add but it bombs on FreeBSD (3.0R) with: xauth: (argv):1: bad "add" command line Take the pairs of spaces and replace them with one space: echo "dhopper.dummynet.:0 MIT-MAGIC-COOKIE-1 0000000000000000000000000000000\ 0" | xargs xauth add and it works fine. Seems like a bug in xargs processing. This clearly shows the problem: echo "dhopper.dummynet.:0 MIT-MAGIC-COOKIE-1 000000000000000000000000000000000" | xargs -n 1 echo "ARG: " ARG: dhopper.dummynet.:0 ARG: ARG: MIT-MAGIC-COOKIE-1 ARG: ARG: 00000000000000000000000000000000 >How-To-Repeat: Run the last command above and observe that 5 args are passed to echo instead of 3. >Fix: Thanks. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904012355.SAA05429>