KittyKatt / screenFetch

Fetches system/theme information in terminal for Linux desktop screenshots.
GNU General Public License v3.0
3.86k stars 455 forks source link

Invocation causes a warning about stray \ before " in grep #754

Closed tocic closed 1 year ago

tocic commented 2 years ago

Bug report

:: Finding current resolution(s)...found as '1920x1080' grep: warning: stray \ before " grep: warning: stray \ before " :: Finding desktop environment...found as 'Not Present'

The above warning is emitted with grep --version:

grep (GNU grep) 3.8

Presumably caused by this:

Regular expressions with stray backslashes now cause warnings, as their unspecified behavior can lead to unexpected results. For example, '\a' and 'a' are not always equivalent https://bugs.gnu.org/39678. Similarly, regular expressions or subexpressions that start with a repetition operator now also cause warnings due to their unspecified behavior; for example, *a(+b|{1}c) now has three reasons to warn. The warnings are intended as a transition aid; they are likely to be errors in future releases.

Seems that other people experience the behavior too.