sjl/t

Breaking t with apostrophes

dmoa opened this issue · 3 comments

dmoa commented

image

When writing a single apostrophe, the program seems to fall into full chaos mode.
I have tried no variants as I did not want to clog up my list of tasks with junk errors.

Thoughts?

From my experience, I was able to use quotes to input text that would otherwise be commands. Escape it.

t rewrite of spruce with j\'s ...

dmoa commented

Works for me!
I don't think it's worth closing the issue however as that seems like a useful but annoying fix.

sjl commented

The quotes are getting handled by your shell before t is ever run. The same thing would happen with any program you ran:

sjl at ouroboros in ~ $ echo foo's test 
> 
> 
> xyz' 
foos test 
 
 
xyz 

I'll add a check to t to fail if newlines are present in the task text, because that messes with the file format.