Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 1999 21:27:38 +0200 (CEST)
From:      Oliver Fromme <olli@dorifer.heim3.tu-clausthal.de>
To:        freebsd-stable@freebsd.org
Subject:   Re: Interesting ways to print 3000 spaces...
Message-ID:  <199908291927.VAA15064@dorifer.heim3.tu-clausthal.de>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908291927.VAA15064>