fix: Cannot specify -d <deviceName>
when deviceName
includes single quote
#700
Labels
bug
Something isn't working
Is there an existing issue for this?
Version
3.4.0
Description
I am using
melos dev -- -d "Robert’s iPhone"
to pass the -d option to mydev
script, which runsflutter run
:This works, as long as the
’
in "Robert’s" is not'
(specifically, note that the former’
has a bit of forward leans, the latter'
does not. I'll call the former "apostrophe" and the latter "single quote"). If I change my phone's name in iOS to use single quote, and then use a single quote in my arguments to the melos script, the script fails with:I have tried escaping the single quote, wrapping
Robert's iPhone
with backticks, and nothing works. However, if I callflutter run
directly, the single quote is not a problem:flutter run --flavor development lib/main_development.dart -d "Robert's iPhone"
Steps to reproduce
See description.
Expected behavior
There should be a way to pass arguments containing single quote(s) to a script.
Screenshots
No response
Additional context and comments
No response
The text was updated successfully, but these errors were encountered: