Todo.txt in Cygwin: Remember there is a windows sort!

Setting up todo.txt in cygwin I stumbled across the script not working due to the following error:

$ todo.sh ls
Input file specified two times.

--
TODO: 0 of 66 tasks shown

After some search it came clear that the problem was that todo.sh tried to use the windows internal sort command for sorting instead of the cygwin one. This can be solved by setting TODOTXT_SORT_COMMAND in the config file to “/bin/sort” instead of just “sort”. Now everything works fine.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.