Commit 9345df11 authored by Bastian Reitemeier's avatar Bastian Reitemeier

moved quoting below argument pattern match, so that the pattern match happens...

moved quoting below argument pattern match, so that the pattern match happens on the unquoted argument
parent 79ce51cb
......@@ -195,14 +195,14 @@ def print_event(cpu, data, size):
skip = True
if args.name and not re.search(bytes(args.name), event.comm):
skip = True
if args.line and not re.search(bytes(args.line),
b' '.join(argv[event.pid])):
skip = True
if args.quote:
argv[event.pid] = [
"\"" + arg.replace("\"", "\\\"") + "\""
for arg in argv[event.pid]
]
if args.line and not re.search(bytes(args.line),
b' '.join(argv[event.pid])):
skip = True
if not skip:
if args.timestamp:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment