From owner-freebsd-stable Sun Aug 29 11:56:49 1999 Delivered-To: freebsd-stable@freebsd.org Received: from smtp11.bellglobal.com (smtp11.bellglobal.com [204.101.251.53]) by hub.freebsd.org (Postfix) with ESMTP id 1081414DD2 for ; Sun, 29 Aug 1999 11:56:45 -0700 (PDT) (envelope-from vanderh@ecf.toronto.edu) Received: from ppp18415.on.bellglobal.com (ppp18339.on.bellglobal.com [206.172.130.19]) by smtp11.bellglobal.com (8.8.5/8.8.5) with ESMTP id PAA13086 for ; Sun, 29 Aug 1999 15:00:19 -0400 (EDT) Received: (from tim@localhost) by ppp18415.on.bellglobal.com (8.9.3/8.9.1) id OAA60279 for freebsd-stable@FreeBSD.ORG; Sun, 29 Aug 1999 14:57:03 -0400 (EDT) (envelope-from tim) Date: Sun, 29 Aug 1999 14:57:02 -0400 From: Tim Vanderhoek To: freebsd-stable@FreeBSD.ORG Subject: Re: Interesting ways to print 3000 spaces... Message-ID: <19990829145702.A45450@ppp18415.on.bellglobal.com> Reply-To: hoek@FreeBSD.ORG References: <199908291431.QAA08474@dorifer.heim3.tu-clausthal.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: <199908291431.QAA08474@dorifer.heim3.tu-clausthal.de>; from Oliver Fromme on Sun, Aug 29, 1999 at 04:31:58PM +0200 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 -- This is my .signature which gets appended to the end of my messages. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message