This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

bash builtin "echo" default behaviour wrong?


Hi,

How do I change to default behaviour of the bash builtin "echo" command to 
process the backslash-escape?

bash-2.01$ echo "first \n next"
first \n next
bash-2.01$ echo -e "First \n next"

bash-2.01$ echo -e "first \n next"
first
 next
bash-2.01$

bash --posix does not help.

I know I can use an alias or a function, but why is this different from the
Bourne Shell (/bin/sh) and Korn Shell) (/bin/ksh) and /bin/echo

Thanks

Alberto da Silva
ads@rmb.co.za

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]