ultraedit - Newline Madness in Bash Script -


I have a Bash script which I edit on windows using UltraEdit and as UTF-8 no BOM Save, using the Unix line terminator style, as specified in the "save as" dialog box in the UI.

Then I'm uploading it to the VertuZozo proportional to the Sentix 5 X 86 machine, and every time, whether I upload it (via FTP binary file, or via parallel management console) ), The script does not work. When I look through the script through parallel management console, I think that there is a strange character in the last and only last line in it, if I line up from the last line Give Minetr out to the end of the script (last printable character) does everything works fine.

My question:

A) Why is only the last line can cause Terminator problems?

B) How will I avoid this in the future?

Thank you! Firstly, I advise you to move in the form of a binary. Because you think that. You know exactly the same.

ASCII / Text FTP is known for line-ending conversion when you do not even want it.


Comments

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

c# - ListView onScroll event -

c - Linux mmap() error -