Word is too helpful

I setup a Raspberry pi about a month ago and as I did not really know what I was doing so I decided to do a reinstall to clean it up.

Every thing went well as I had made a few notes last time and my Python code did what it was supposed to from terminal.

Now the fun begins : I am using a cron job and I just pasted the command in from my notes made in Word. It runs but will not write to the file. Not being a great Linux/command line user I start searching the web checking permissions using sudo etc. and after about six hours I found a way to view the error. “File not found” which is strange as I pasted it from the word file; I can not see a problem. More searching on the web and find a way to search for the file and again “File not found” but it displayed the file path.

Anyway pasting the file path it found and the filepath in my word file I find an extra n in the folder name; word must have corrected my spelling on my folder and I had not noticed!

Moral of the story - check the obvious first.

3 Likes

I haven’t used Word as a file editor for ages. It can produce some very impressive print media documents, but when it comes to web and programming files it’s too “helpful”. It might be better if it had confirm message boxes like “convert straight quotes to curly?”, and for all I know there may even be settings that could be tweaked to make it an acceptable editor for web files.

Long story short, try to find a “plain” text editor that you like, (I’ve been using Notepad++ for a long but there are many others) or maybe an IDE and save using Word for your party invitations and the like.

1 Like

I was not using it as a file editor but to record the process I needed to get a sensor up and running on a Pi. I went for it as I wanted to add some images and be able to change some of the font styles.

All went well until I added some commands I would need to run next time and that is where word changed the spelling for me. I had a folder called enviroment and it changed it to environment. Even this forum has changed the spelling and I have had to put it back!

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.