delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/05/26/23:39:35

X-Spam-Check-By: sourceware.org
Message-ID: <ca5781c80705262039x24ac2f0ch99bf0fe83fd1e3ba@mail.gmail.com>
Date: Sat, 26 May 2007 23:39:10 -0400
From: "Isaac Good" <isaac AT rentmagic DOT ca>
To: cygwin AT cygwin DOT com
Subject: Re: echo with no line feed
In-Reply-To: <4658FCBB.8030909@earthlink.net>
MIME-Version: 1.0
References: <4657D057 DOT 4090502 AT earthlink DOT net> <20070526145859 DOT GA3313 AT ednor DOT casa DOT cgf DOT cx> <n2m-g DOT 325e20f89d73c895d99cc7a3cc71263f AT crystal DOT laburec DOT de> <46585D7D DOT 1070805 AT earthlink DOT net> <20070526170712 DOT GA18329 AT trixie DOT casa DOT cgf DOT cx> <4658FB50 DOT 8060101 AT earthlink DOT net> <4658FCBB DOT 8030909 AT earthlink DOT net>
X-Google-Sender-Auth: 45250c93bf6d385e
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

You mean preventing it from printing a newline?
Try this:
echo -n "Type file name: \c"
(From Google -> man echo)

On 5/26/07, John <jhy001 AT earthlink DOT net> wrote:
> I can't get:
>
> #! /bin/sh
> echo "Type file name: \c"
> read FNAME
> echo $FNAME
> #
>
> to work without the line feed (using " or ' quotes
> in the echo). Any tips?
>
> Thanks, John
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>
>


-- 
- Yitzchok Good

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019