From owner-freebsd-stable Sun Aug 29 12:28:51 1999 Delivered-To: freebsd-stable@freebsd.org Received: from dorifer.heim3.tu-clausthal.de (dorifer.heim3.tu-clausthal.de [139.174.243.252]) by hub.freebsd.org (Postfix) with ESMTP id AA98914E1E for ; Sun, 29 Aug 1999 12:28:46 -0700 (PDT) (envelope-from olli@dorifer.heim3.tu-clausthal.de) Received: (from olli@localhost) by dorifer.heim3.tu-clausthal.de (8.8.8/8.8.8) id VAA15064 for freebsd-stable@freebsd.org; Sun, 29 Aug 1999 21:27:38 +0200 (CEST) (envelope-from olli) Date: Sun, 29 Aug 1999 21:27:38 +0200 (CEST) From: Oliver Fromme Message-Id: <199908291927.VAA15064@dorifer.heim3.tu-clausthal.de> To: freebsd-stable@freebsd.org Subject: Re: Interesting ways to print 3000 spaces... Organization: Administration Heim 3 Reply-To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: TIN [version 1.2 RZTUC(3) PL2] Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Tim Vanderhoek wrote in list.freebsd-stable: > On Sun, Aug 29, 1999 at 04:31:58PM +0200, Oliver Fromme wrote: > > > > When using zsh, it can be done without exec'ing anything > > (only using shell-builtins): > > > > for f in {1..3000}; do echo -n " "; done > > Actually, with our /bin/sh you can I think avoid execing and do this, > > c=1 > while [ $c -le 3000 ] > do > c=$(($c + 1)) > echo -n ' ' > done That works, but there is an exec: ``['' is not built-in. Regards Oliver -- Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany (Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de) "In jedem Stück Kohle wartet ein Diamant auf seine Geburt" (Terry Pratchett) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message