I've restarted it several times, saved the code under another name and done everything I can think of but it isn't using the changes I've made. For example, I used dots to make the pyramid so I could see the spaces and now, although I have changed them to spaces, the dots are still appearing.

Does anyone have any suggestions?

  • Are you absolutely sure that the file you are saving from gedit is the same file that you are compiling? Or is it possible that you are saving to one directory and compiling a different copy of the file in another directory? Look at the complete path/filename at the top of gedit and compare to the prompt in the terminal session that shows the current path that it is in.
    – Cliff B
    Commented Aug 30, 2015 at 21:19
  • I'm saving into Dropbox/pset1 and then immediately compiling so, as far as I can see, it's all in the same directory. Commented Aug 30, 2015 at 22:35
  • the only other things I can think of is that you may be trying to compile the new program unsuccessfully and then executing the old executable. Also, you say you saved it under another name. If you saved it from gedit, then gedit will continue to save it under that name until you save it under the original (or yet another) name. If that is the case, then you wouldn't be compiling the saved file. Can you run this command: ls -al and post a screenshot of the result in your question?
    – Cliff B
    Commented Aug 30, 2015 at 22:45
  • There are two parts to this because it's so long. It did remind me about another strange thing that happened which was a file suddenly appeared called 'Mario (appliance's conflicted copy)' a few days ago. I deleted it but guess it may have some bearing on this. Commented Aug 31, 2015 at 0:29
  • -rw------- 1 jharvard students 267 Aug 25 09:58 Going crazy -rw------- 1 jharvard students 267 Aug 25 11:11 crazy.c -rwx------ 1 jharvard students 9049 Aug 29 13:35 greedy -rw------- 1 jharvard students 870 Aug 29 16:06 greedy.c -rw------- 1 jharvard students 841 Aug 28 23:25 greedybackup.c -rwx------ 1 jharvard students 8398 Aug 20 10:47 hello -rw------- 1 jharvard students 119 Aug 20 10:52 hello.c -rw------- 1 jharvard students 6 Aug 19 23:06 hello.txt -rwx------ 1 jharvard students 8975 Aug 24 22:53 mario Commented Aug 31, 2015 at 0:30

2 Answers 2


Are you saving the file using ctrl-s? gedit has an autosave feature so perhaps you are compiling your "changed" file before it has actually been saved, expecting that the autosave would have already happened?

  • I wasn't aware there was an autosave feature so probably not. Commented Aug 30, 2015 at 22:35

This reminds me of a similar situation, so I'll recommend that you execute a similar command to help me troubleshoot:

for i in $(find ~ -name mario.c ! -path "*/.c9/*"); do echo $i:; cat $i; echo; done

Please execute this exact command (no typos allowed!) and paste the results into your question above so that we can look at them.

(Never fear! Here's what the cryptic command does: It will search your entire home directory for files named mario.c, excluding hidden .c9 directories which are used by Cloud 9 IDE for configuration stuff. If it finds any mario.c files, it will print their location to the Terminal using echo, then print their contents using cat, then echo a blank line.)

Once you have executed this command, please paste the output into your original question, highlight it, and format it as code by pressing Ctrl+K (or clicking on the {} in the editor).

Please do not paste it into the comments! It will probably be too long for a comment, and even if not it will be much easier for me to read if it's formatted properly.

Hope this helps!

EDIT: Oops, my bad. I didn't notice that this is a Zombie Question. (It has been resolved in the comments, but no answer has been selected.) To prevent it from haunting the forum forever, please click the green check mark on one of the answers.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .