View Single Post
Old 12-18-2022, 01:40 PM   #81
Renate
Onyx-maniac
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 4,055
Karma: 18026955
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
Oh, wait a minute!
How are you copying/pasting the scripts?
Are you using "Windows Notepad"?
Don't!

Install Notepad++ which correctly deals with "Unix style" (uses LF instead of CR/LF line endings).
You can also use "Unix style" on any text file for Windows too.
"Unix style" should be your choice always.

Load your script in Notepad++. It will say either "DOS" or "Unix" in the bottom status bar.

https://notepad-plus-plus.org/downloads/

And/or:
Code:
$ dos2unix /data/local/tmp/alpha.sh
And you have to give credit to *nix for being so bloody-minded.
It could just say, "Oh, jeez, another ^M coming before ^J again. I guess that I'll ignore it."

In Windows, under Settings > Apps > Apps & Features > Optional Features > Notepad > Uninstall!

Last edited by Renate; 12-18-2022 at 02:02 PM.
Renate is online now   Reply With Quote