When I run the sunpaper command as a daemon with weather enabled, I get a warning about a stray backslash:
$ sunpaper -d
grep: warning: stray \ before "
grep: warning: stray \ before "
grep: warning: stray \ before "
grep: warning: stray \ before "
The Sunpaper daemon has started -- use sunpaper.sh -k to stop it.
I'm pretty sure it's because the grep string has some unnecessary escapes:
$ echo '"foo"' | grep '\"foo\"'
grep: warning: stray \ before "
grep: warning: stray \ before "
"foo"
$ grep --version
grep (GNU grep) 3.11
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Haertel and others; see
<https://git.savannah.gnu.org/cgit/grep.git/tree/AUTHORS>.
grep -P uses PCRE2 10.44 2024-06-07
When I run the
sunpaper
command as a daemon with weather enabled, I get a warning about a stray backslash:I'm pretty sure it's because the grep string has some unnecessary escapes:
Specifically this line is suspect: https://github.com/hexive/sunpaper/blob/main/sunpaper.sh#L637