From owner-cvs-all Mon Aug 30 17:11:19 1999 Delivered-To: cvs-all@freebsd.org Received: from gatekeeper.tsc.tdk.com (gatekeeper.tsc.tdk.com [207.113.159.21]) by hub.freebsd.org (Postfix) with ESMTP id 9801E1595A; Mon, 30 Aug 1999 17:11:12 -0700 (PDT) (envelope-from gdonl@tsc.tdk.com) Received: from sunrise.gv.tsc.tdk.com (root@sunrise.gv.tsc.tdk.com [192.168.241.191]) by gatekeeper.tsc.tdk.com (8.8.8/8.8.8) with ESMTP id RAA18569; Mon, 30 Aug 1999 17:10:22 -0700 (PDT) (envelope-from gdonl@tsc.tdk.com) Received: from salsa.gv.tsc.tdk.com (salsa.gv.tsc.tdk.com [192.168.241.194]) by sunrise.gv.tsc.tdk.com (8.8.5/8.8.5) with ESMTP id RAA17822; Mon, 30 Aug 1999 17:10:21 -0700 (PDT) Received: (from gdonl@localhost) by salsa.gv.tsc.tdk.com (8.8.5/8.8.5) id RAA24778; Mon, 30 Aug 1999 17:10:19 -0700 (PDT) From: Don Lewis Message-Id: <199908310010.RAA24778@salsa.gv.tsc.tdk.com> Date: Mon, 30 Aug 1999 17:10:19 -0700 In-Reply-To: Matthew Hunt "Re: cvs commit: src/bin/mkdir mkdir.1 mkdir.c" (Aug 30, 8:21am) X-Mailer: Mail User's Shell (7.2.6 alpha(3) 7/19/95) To: Matthew Hunt , Mark Murray Subject: Re: cvs commit: src/bin/mkdir mkdir.1 mkdir.c Cc: Bill Fumerola , "Rodney W. Grimes" , Michael Haro , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Aug 30, 8:21am, Matthew Hunt wrote: } Subject: Re: cvs commit: src/bin/mkdir mkdir.1 mkdir.c } On Mon, Aug 30, 1999 at 08:19:55AM +0200, Mark Murray wrote: } } > EG- A couple of years ago, someone wanted date(1) to not put a \n at } > the end of its output (for whatever reason), and he added a new -n } > flag to do it. Canonical UNIX method to do this is } > } > $ echo -n `date` } } Which is, of course, not quite the same as omitting the newline. } } The output of date(1) can contain multiple sequential spaces. After } being split into arguments, and recombined by echo(1), they'll be } reduced to one space. } } wopr:~$ date -r 800000 } Fri Jan 9 22:13:20 PST 1970 } wopr:~$ echo -n `date -r 800000`; echo } Fri Jan 9 22:13:20 PST 1970 $ echo -n "`date -r 800000`"; echo Fri Jan 9 22:13:20 PST 1970 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message