[prev in list] [next in list] [prev in thread] [next in thread]
List: gdb
Subject: skip -rfu, have to escape backlashes even inside quotes
From: Kim Kuparinen via Gdb <gdb () sourceware ! org>
Date: 2021-01-12 11:45:09
Message-ID: CABD-7MwAy-q_3QagCE=DD-11D+T6tbHnPVjXO0oBaSn28Yo6og () mail ! gmail ! com
[Download RAW message or body]
Hi, first time using a mailing list, sorry if I mess something up.
I noticed that when trying to use skip -rfu REGEX, I had to escape
backslashes even if I quoted the regex. So
skip -rfu '\('
errors out with
regexp: umatched ( or \(
I dug around a bit and found out that the issue seems to be in
libiberty/argv.c, in the function buildargv(). The function seems to always
strip backslashes, because in the if/else if/else chain, the backslash
character is checked(and as such, removed) before squote or dquote. I got
gdb to do what I wanted to by moving the check for a backslash behind the
checks for squote and dquote.
That being said, is this intended behaviour? Seems sort of counter
intuitive.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic