Bug#1051205: git grep -F isn't ‒ '(' fails with "fatal: unmatched parenthesis"

2024-03-22 Thread наб
Control: tags -1 + upstream

hehe hoho git grep '(' is actually git grep PATTERN_GROUP_START,
because git grep has pattern grouping.

Not a bug per se, but the error message is actively adversarial:
  $ git grep \(
  fatal: unmatched parenthesis
  $ git grep \)
  fatal: incomplete pattern expression: )
neither of these explain what the error actually is.
Somehow the one for ) is worse,
since this is a /complete/ pattern (which is a regular expression).


signature.asc
Description: PGP signature


Bug#1051205: git grep -F isn't ‒ '(' fails with "fatal: unmatched parenthesis"

2023-09-04 Thread наб
Control: retitle -1 git grep -F and BRE fail for "'('" with "fatal: unmatched 
parenthesis" but work for "-- '('"?

This is correct:
$ git grep '\('  | head -n1
fatal: command line, '\(': Unmatched ( or \(

This ain't:
$ git grep '('  | head -n1
fatal: unmatched parenthesis
$ git grep -- '('  | head -n1
CONTRIBUTING:   or from git(1) logs or logs in other version control 
systems.
$ git grep -F -- '('  | head -n1
CONTRIBUTING:   or from git(1) logs or logs in other version control 
systems.


signature.asc
Description: PGP signature


Bug#1051205: git grep -F isn't ‒ '(' fails with "fatal: unmatched parenthesis"

2023-09-04 Thread наб
Package: git
Version: 1:2.39.2-1.1
Version: 1:2.40.1-1
Severity: normal

Dear Maintainer,

$ git grep -F '('
fatal: unmatched parenthesis
$ git grep -F '\('
Changes.old:sed 's/^\(\.[BRI]\)[BRI]\( \([^ 
]\+\|\"[^\"]\+\"\)\)$/\1\2/g'
Changes.old:git grep -P '^\.(BR|IR) [\w]*\([\d]*\)$'
(but '\('s are highlighted here so idk what this could possibly mean).

sid and bookworm.

Best,
наб

-- System Information:
Debian Release: 12.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-9-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, 
TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages git depends on:
ii  git-man  1:2.39.2-1.1
ii  libc62.36-9+deb12u1
ii  libcurl3-gnutls  7.88.1-10
ii  liberror-perl0.17029-2
ii  libexpat12.5.0-1
ii  libpcre2-8-0 10.42-1
ii  perl 5.36.0-7
ii  zlib1g   1:1.2.13.dfsg-1

Versions of packages git recommends:
ii  ca-certificates  20230311
ii  less 590-2
ii  openssh-client [ssh-client]  1:9.2p1-2
ii  patch2.7.6-7.1

Versions of packages git suggests:
ii  gettext-base  0.21-12
pn  git-cvs   
pn  git-daemon-run | git-daemon-sysvinit  
pn  git-doc   
pn  git-email 
pn  git-gui   
pn  git-mediawiki 
pn  git-svn   
pn  gitk  
pn  gitweb

-- no debconf information


signature.asc
Description: PGP signature