It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
A couple weeks ago I posted this thread asking about how I would go about getting the Todo.txt CLI to save the dodo file to my Dropbox. A very helpful person gave me the solution.

Since then I've had to reinstall Windows. I've repeated this whole Cygwin process and I've suddenly, I've ran into new problems. In my previous Windows installation, the todo.cfg file read:

export TODO_DIR="/cygdrive/c/Documents and Settings/User/My Documents/Dropbox/Documents/todo"

All that has changed in my new installation is the user account name:

export TODO_DIR="/cygdrive/c/Documents and Settings/Luke/My Documents/Dropbox/Documents/todo"

Now, I get this error when I try to use it:

/home/Luke/todo.cfg: line 2: $'\r': command not found
/home/Luke/todo.cfg: line 5: $'\r': command not found
/home/Luke/todo.cfg: line 6: $'\r': command not found
/home/Luke/todo.cfg: line 11: $'\r': command not found
/home/Luke/todo.cfg: line 14: $'\r': command not found
/home/Luke/todo.cfg: line 16: $'\r': command not found
/home/Luke/todo.cfg: line 18: $'\r': command not found
/home/Luke/todo.cfg: line 26: $'\r': command not found
/home/Luke/todo.cfg: line 44: $'\r': command not found
/home/Luke/todo.cfg: line 46: $'\r': command not found
/home/Luke/todo.cfg: line 59: $'\r': command not found
/home/Luke/todo.cfg: line 64: $'\r': command not found
/home/Luke/todo.cfg: line 69: $'\r': command not found
/home/Luke/todo.cfg: line 71: $'\r': command not found
/home/Luke/todo.cfg: line 79: $'\r': command not found
/home/Luke/todo.sh: line 734: cd: /cygdrive/c/Documents and Settings/Luke/My Doc: No such file or directorydo
Fatal Error: Unable to cd to /cygdrive/c/Documents and Settings/Luke/My Documents/Dropbox/Documents/todo

And it creates folders in my home directory called "Documents, "and", "Settings". I have no idea what's gone wrong. Anyone have any ideas please?
This question / problem has been solved by Maighstirimage
Anyone?
Hmm, the first seems a problem with line endings, interesting that it's not affecting all lines.

Either try the perl or sed commands (make a backup first), or open the file in a text editor (say [url=http://www.flos-freeware.ch/notepad2.html]Notepad2) where you can pick the line endings (and resave as either DOS/Windows (\r\n or CR+LF) or Unix (\n or LF) depending on what todo wants... also make a backup first).

Forgive the attached screenshot, While you run Unix/Linux applications via Cygwin, I run Windows ones via Wine.
Attachments:
notepad2.png (38 Kb)
avatar
Maighstir: Hmm, the first seems a problem with line endings, interesting that it's not affecting all lines.

Either try the perl or sed commands (make a backup first), or open the file in a text editor (say [url=http://www.flos-freeware.ch/notepad2.html]Notepad2) where you can pick the line endings (and resave as either DOS/Windows (\r\n or CR+LF) or Unix (\n or LF) depending on what todo wants... also make a backup first).

Forgive the attached screenshot, While you run Unix/Linux applications via Cygwin, I run Windows ones via Wine.
You sir are awesome! I changed the line endings to Unix and now it works perfectly. Thank you very much.