From owner-freebsd-stable Sun Aug 29 8: 1:47 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 479A814C2F for ; Sun, 29 Aug 1999 08:01:40 -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 QAA09297 for freebsd-stable@FreeBSD.ORG; Sun, 29 Aug 1999 16:59:28 +0200 (CEST) (envelope-from olli) Date: Sun, 29 Aug 1999 16:59:28 +0200 (CEST) From: Oliver Fromme Message-Id: <199908291459.QAA09297@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 Kai Voigt wrote in list.freebsd-stable: > 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 > > % repeat 3000 echo -n " " Good point. There's an even shorter solution in zsh, which doesn't require 3000 calls to the echo function: echo -n ${(l:3000:)x+} Your turn. :) 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