This is getting crazier and crazier. #!/bin/sh echo -e hello world '\t' hi there
OR #!/bin/bash echo hello world $'\t' hi there OR #!/bin/bash /bin/echo hello world $'\t' hi there OR #!/bin/tcsh echo hello world '\t' hi there But NOT #!/bin/tcsh /bin/echo hello world '\t' hi there Interesting facts: 1) /bin/sh on cygwin does not have the same features as /bin/sh on many familiar unix systems. 2) bash is documented (man bash !) and behaves like bash on many familiar unix systems. 3) echo is a shell builtin. It is a mistake to talk about the "cygwin echo" unless you mean /bin/echo 4) It's spelled "cygwin" not "cygiwn" 5) This thread has nothing to do with newlines. 6) tcsh programming is harmful. > -----Original Message----- > From: Wayne Willcox [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 18, 2001 4:13 PM > To: [EMAIL PROTECTED] > Cc: hrishy; Cygwin > Subject: Re: cygiwn newline character > > > Why a $ this certainly will not work on AIX or FreeBSD both > of those systems > will return the following output. > hello world $ hi there > > Okay the tab is now being honored but you would have to cut the $. > > On Thu, Oct 18, 2001 at 01:06:29PM -0400, Alec Mihailovs wrote: > > You should put a $ sign in front of '\t' : > > > > echo hello world $'\t' hi there > > > > Alec > > > > -----Original Message----- > > > > i am running the following programme under windows > > #!/bin/sh > > echo hello world '\t' hi there > > > > i am getting the output as hello world '\t' hi there > > > > wheras i require the output to be > > hello word hi there > > Hrishy -- 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/