This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Suppress newline under cygwin bash
- From: Gareth Gregor <gareth at vukanet dot co dot za>
- To: Robert Mark Bram <relaxedrob at optushome dot com dot au>
- Cc: Cygwin <cygwin at cygwin dot com>
- Date: Tue, 28 Jan 2003 09:39:09 +0200 (SAST)
- Subject: Re: Suppress newline under cygwin bash
echo -en "hello"
and with a newline,
echo -en "hello\n"
Gareth
On Tue, 28 Jan 2003, Robert Mark Bram wrote:
> Howdy all!
>
> I have noticed that the two ways I have read about to suppress newline
> characters in the echo command do not seem to be working. Here is what I
> have tried:
>
> $ echo "hi there\c"
> hi there\c
>
> $ echo "...using -n."
> ...using -n.
>
> $
>
> Quoted or unquoted, the result is the same. I tried doing a google search
> (and cygwin archive search) for "echo suppress newline" but did not find
> anything related to cygwin.
>
> BTW.. my purpose?
>
> Andrew DeFaria gave me a suggestion for creating a shorter way to use drag
> and dropping of path names into Cygwin. Type:
> $ cd ""
> Then type control-B to backup one space
> (between the two "") then drag
> and drop.
>
> Well, that is still too much typing! So I want to create an alias that will
> show the cd "" and leave the cursor on the same line..
>
> Any help would be much appreciated!
>
> Rob
> :)
> :->
> :-}
>
>
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/