4

Weird zsh grep -P behaviour

view full story
linux-howto

http://unix.stackexchange.com – I connect to server with PuTTY from Windows. I have a long yet not touched (I suppose) by hands of local admin config: $ cat /opt/jira/.subversion/config ... ### must be enabled, which is typically done by setting the ### 'enable-auto-props' option. # *.c = svn:eol-style=native # *.cpp = svn:eol-style=native ... Want to see if there are lines, which begin with something not #: $ cat /opt/jira/.subversion/config | grep -P "$[^#]" zsh: bad math expression: operand expected at `^#' $ [1] broken pipe cat /opt/jira/.subversion/config $ cat /opt/jira/.subversion/config | grep -P "\$[^# (HowTos)