Closed jhartshorn closed 6 years ago
@jhartshorn Can you update your .todo/config
file to be:
export TODO_DIR= "/home/james/Dropbox/todo"
Rather than
export TODO_DIR=$(dirname "/home/james/Dropbox/todo")
That worked - apologies, I didn't spot that. I edited the wrong line in the config and thought I'd put things straight. I didn't mean to use the bug tracker as a support forum, but thanks nevertheless!
Do you want to request a feature or report a bug? Bug
What is the current behavior? todo.txt in parent of TODO_DIR is used by todo.sh.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Add to
.todo/config
:export TODO_DIR=$(dirname "/home/james/Dropbox/todo")
Runningtodo.sh a "test"
creates a new todo.txt file in `/home/james/Dropbox'.What is the expected behavior? Running
todo.sh a "test"
creates a new todo.txt file in `/home/james/Dropbox/todo'.Which versions todo.sh are you using?
TODO.TXT Command Line Interface v2.11.0
Which Operating System are you using? Arch Linux
Which version of bash are you using?
Please note that this can be worked around by adding a further subfolder to TODO_DIR. When I set TODO_DIR to
/home/james/Dropbox/todo/bug
(which did not exist) todo.sh used the file in/home/james/Dropbox/todo
.