Re: echo with no line feed

2007-05-29 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Igor Peshansky on 5/29/2007 9:20 AM: > '\c' is an escape sequence that prompts 'echo' to disable the trailing > newline. However, you have to tell 'echo' to look for escape sequences, > i.e., > > echo -e "Type file name: \c" Except that

Re: echo with no line feed

2007-05-29 Thread Igor Peshansky
On Sat, 26 May 2007, John 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? '\c' is an escape sequence that prompts 'echo' to disable the trailing newline. However, you

Re: echo with no line feed

2007-05-26 Thread Isaac Good
Oops. Sorry for replying. Just joined the mail group and it was the first email I got... On 5/27/07, Larry Hall (Cygwin) <[EMAIL PROTECTED]> wrote: John wrote: > I can't get: > > #! /bin/sh > echo "Type file name: \c" > read FNAME > echo $FNAME > # > > to work without the line feed (using " or '

Re: echo with no line feed

2007-05-26 Thread Larry Hall (Cygwin)
John 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? Please don't commandeer another thread for your own purposes. Replying to another thread and changing the subject

Re: echo with no line feed

2007-05-26 Thread Isaac Good
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 <[EMAIL PROTECTED]> 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

echo with no line feed

2007-05-26 Thread John
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 Documenta