From owner-freebsd-questions Wed Jan 30 18:56: 4 2002 Delivered-To: freebsd-questions@freebsd.org Received: from svr3.applink.net (svr3.applink.net [206.50.88.3]) by hub.freebsd.org (Postfix) with ESMTP id 2184E37B400 for ; Wed, 30 Jan 2002 18:56:01 -0800 (PST) Received: from home.ashavan.org. (pri12-10-122.applink.net [216.91.197.122]) by svr3.applink.net (8.12.1/8.12.1) with ESMTP id g0V2teSr028244; Wed, 30 Jan 2002 20:55:41 -0600 Received: from there (argent.home.ashavan.org [172.16.10.50]) by home.ashavan.org. (8.11.6/8.11.6) with SMTP id g0V2rCL28095; Thu, 31 Jan 2002 02:53:22 GMT Message-Id: <200201310253.g0V2rCL28095@home.ashavan.org.> Content-Type: text/plain; charset="iso-8859-1" From: Timothy Covell Reply-To: timothy.covell@ashavan.org To: gwq_uk@yahoo.com, FreeBSD-Questions@FreeBSD.ORG Subject: Re: Echo "\c" does not work Date: Wed, 30 Jan 2002 20:55:16 -0600 X-Mailer: KMail [version 1.3.2] References: <20020131022758.53617.qmail@web13306.mail.yahoo.com> In-Reply-To: <20020131022758.53617.qmail@web13306.mail.yahoo.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wednesday 30 January 2002 20:27, Greg Quinlan wrote: > Hello all, > > This is quite a small thing but does anyone know why echo "\c" does not > work. It is suppose to echo without a new line. > > I am doing a cut-over of a SCO System (IBCS2) to FreeBSD and I have loads > of shell scripts with echo no new line done this way. The man page says it > is valid. I do know "echo -n" > > Thanks > > Greg > Methinks that you want to use printf which uses these control characters. Echo is tempting to use, but quickly leads to problems. It should be simple to write a script to replace all "echo" statements with "printf", but then you will need "\n" to be properly placed. -- timothy.covell@ashavan.org. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message