owncloud / testing

🔧 app for testing ownCloud
GNU Affero General Public License v3.0
3 stars 4 forks source link

occ commands with spaces in quoted strings are not parsed correctly #31

Closed phil-davis closed 6 years ago

phil-davis commented 6 years ago

Try to use the testing app to do an occ command like:

user:add user0 --password-from-env --display-name='User One' --email='user1@example.com'

The testing app separates the command parts by whitespace, then escapes each part. The problem is that you get parts `--display-name='User and One' - and then there is trouble.

The regex needs tto be smarter so that is sees --display-name='User One' as a single match.

phil-davis commented 6 years ago

Done in PR #32