Closed yury closed 1 year ago
Hello Nicolas 👋
This PR partially fix issue with parsing quoted arguments.
For instance,
ssh "user name"@localhost produced [ssh, user name, localhost] argv.
ssh "user name"@localhost
ssh
user name
localhost
With this PR it will produce [ssh, \"user name\"@localhost] argv.
\"user name\"@localhost
Not ideal, but a least we can handle that inside command.
Ideal fix would be to also fix unquoteArgument function https://github.com/holzschu/ios_system/blob/6a83eb1c6c383a562fbe33a7e97677e88d305b51/ios_system.m#L2442-L2447
unquoteArgument
But fix require new allocations, so I decided that this PR is good for the start.
Hi Yury, thanks a lot. It makes a lot of sense. I'm merging.
Hello Nicolas 👋
This PR partially fix issue with parsing quoted arguments.
For instance,
ssh "user name"@localhost
produced [ssh
,user name
,localhost
] argv.With this PR it will produce [
ssh
,\"user name\"@localhost
] argv.Not ideal, but a least we can handle that inside command.
Ideal fix would be to also fix
unquoteArgument
function https://github.com/holzschu/ios_system/blob/6a83eb1c6c383a562fbe33a7e97677e88d305b51/ios_system.m#L2442-L2447But fix require new allocations, so I decided that this PR is good for the start.