a97144d0e83674b65132272ea8d04e780b73e7b1
Commit 8e4364f5e1 removed the deletion of the "|" character from cleaninput. That was okay for the cleaninput() use in _addto(), but not in those cases that used $input for replacement via sed.
Added corresponding tests for replace, append and prepend actions similar to what was added for the add action in the above commit.
To really fix the problem (and not just remove all "|" characters from the text), a separator character must be found that is not part of $input, and this must be used in the sed expression. As cleaninput() already modifies the global $input variable, another $inputSep global variable is used to pass back this information.
In addition, backslashes must be escaped in $input, or replacements like \1 wreak havoc.
h1. TODO.TXT Command Line Interface A simple and extensible shell script for managing your todo.txt file. h2. "Downloads":http://github.com/ginatrapani/todo.txt-cli/downloads "Download the latest stable release":http://github.com/ginatrapani/todo.txt-cli/downloads for use on your desktop or server. h2. "Documentation":http://wiki.github.com/ginatrapani/todo.txt-cli * "User Documentation":http://wiki.github.com/ginatrapani/todo.txt-cli/user-documentation - Find out "how to install and use Todo.txt CLI":http://wiki.github.com/ginatrapani/todo.txt-cli/user-documentation, and get tips and tricks. * "Developer Documentation":http://wiki.github.com/ginatrapani/todo.txt-cli/developer-documentation - "Contribute to Todo.txt CLI":http://wiki.github.com/ginatrapani/todo.txt-cli/developer-documentation and build your own custom add-ons. h2. "Mailing List":http://groups.yahoo.com/group/todotxt/ Get support from users and developers on the "mailing list":http://groups.yahoo.com/group/todotxt/. h2. Quick Links * Original anemic release by "Gina Trapani":http://ginatrapani.org on 5/11/2006. * Raised to great heights by "brainy and dedicated volunteers":http://github.com/ginatrapani/todo.txt-cli/network. * Licensed under the "GPL":http://www.gnu.org/copyleft/gpl.html * "Add-on Directory":http://wiki.github.com/ginatrapani/todo.txt-cli/todosh-add-on-directory * "Changelog":http://wiki.github.com/ginatrapani/todo.txt-cli/todosh-changelog * "Known Bugs":http://github.com/ginatrapani/todo.txt-cli/issues
Description
☑ A simple and extensible shell script for managing your todo.txt file.
http://todotxt.org
Languages
Shell
98.7%
Makefile
1.3%