Bug #6354

dtrace -c doesn't properly handle arguments that contain spaces

Added by Paul Dagnelie over 3 years ago. Updated 9 months ago.

Status:ClosedStart date:2015-10-18
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Difficulty:Bite-size Tags:needs-triage


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

Duplicates illumos gate - Bug #1440: dtrace -c doesn't parse the command string properly New 2011-09-01


#1 Updated by Ryan Zezeski over 1 year ago

  • Duplicates Bug #1440: dtrace -c doesn't parse the command string properly added

#2 Updated by Andy Fiddaman 9 months ago

  • Status changed from New to Closed

Closing duplicate

Also available in: Atom