-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
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
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 '
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
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
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
6 matches
Mail list logo