diff options
author | Marc Coquand <marc@mccd.space> | 2024-05-17 15:13:18 -0500 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-05-17 15:13:18 -0500 |
commit | b6ecaa98c8a07c42f55bb498ebdb8c82873c3b62 (patch) | |
tree | 550ea641a3c08f25312f33511666d659f69f2b42 | |
parent | 1b4ed54a85c31a032fbc841c62f674c3a8f2764b (diff) | |
download | stitch-b6ecaa98c8a07c42f55bb498ebdb8c82873c3b62.tar.gz stitch-b6ecaa98c8a07c42f55bb498ebdb8c82873c3b62.tar.bz2 stitch-b6ecaa98c8a07c42f55bb498ebdb8c82873c3b62.zip |
Fix escaping
Diffstat (limited to '')
-rw-r--r-- | bin/main.ml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/main.ml b/bin/main.ml index 385f273..13d7f6d 100644 --- a/bin/main.ml +++ b/bin/main.ml @@ -91,8 +91,8 @@ let headlines_cmd = "function capture {\n\ \ JRNL=\"\\$STITCH_DIRECTORY/\\$(date +'%y-%m-%d.%H:%M.%S').org\"\n\ \ echo '* ' > /tmp/capture \n\ - \ $EDITOR /tmp/capture +1\n\ - \ if grep -q '^\\*\\s*\\$' /tmp/capture \n\ + \ \\$EDITOR /tmp/capture +1\n\ + \ if grep -q '^\\\\*\\\\s*\\$' /tmp/capture \n\ \ then \n\ \ echo \"Empty capture; ignoring\"\n\ \ else \n\ @@ -124,7 +124,7 @@ let headlines_cmd = \ JRNL=\"\\$STITCH_DIRECTORY/\\$(date +'%y-%m-%d.%H:%M.%S').org\"\n\ \ echo '* TODO ' > /tmp/capture\n\ \ \\$EDITOR /tmp/capture +1\"\n\ - \ if grep -q '^\\* TODO\\s*\\$' /tmp/capture \n\ + \ if grep -q '^\\\\* TODO\\\\s*\\$' /tmp/capture \n\ \ then \n\ \ echo \"Empty capture\"\n\ \ else \n\ |