Actions
Bug #6354
closeddtrace -c doesn't properly handle arguments that contain spaces
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2015-10-18
Due date:
% Done:
0%
Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:
External Bug:
Description
a command like
dtrace -n 'fbt::read:entry {}' -c 'cat file\ name.txt'
does not work correctly, because dtrace will attempt to cat 'file\' and "name.txt". This stems from https://github.com/illumos/illumos-gate/blob/master/usr/src/cmd/dtrace/dtrace.c#L276, which blindly splits tokens by whitespace, without attempting to detect escape characters or quotes.
Related issues
Updated by Ryan Zezeski almost 6 years ago
- Is duplicate of Bug #1440: dtrace -c doesn't parse the command string properly added
Actions