This is the mail archive of the
mailing list for the Cygwin project.
Illegal character ^M
- From: frenco <frencoo at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 29 Nov 2011 10:57:44 -0800 (PST)
- Subject: Illegal character ^M
I have a problem with a character. I think it's a conversion problem between
dos and unix.
I have a variable that is a float value.
When I print it with the echo command i get:
But when I try to make an operation on that value with the bc command (I am
not sure how to write the bc command).
echo $mean *1000 |bc
(standard_in) 1 : illegal character: ^M
I already use the dos2unix command on my .sh file.
I think it's because my variable have the ^M character (not printed with the
How can i eliminate this error?
I already try a lot of things but I am really lost.
View this message in context: http://old.nabble.com/Illegal-character-%5EM-tp32881791p32881791.html
Sent from the Cygwin list mailing list archive at Nabble.com.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple