cfg_workspace: Accept outputs with spaces again

This is a regression from bce088679.

An other way to fix this would be to concatenate strings inside the
strtok loop when an output starts with a double quote but I'd rather
let the parser do the word splitting.

Fixes #3646
This commit is contained in:
Orestis Floros
2019-03-21 19:29:56 +02:00
parent 3aa42cf795
commit 8ce99cdacb
4 changed files with 50 additions and 26 deletions

View File

@ -277,11 +277,13 @@ state WORKSPACE:
state WORKSPACE_OUTPUT:
'output'
-> WORKSPACE_OUTPUT_STR
-> WORKSPACE_OUTPUT_WORD
state WORKSPACE_OUTPUT_STR:
output = string
-> call cfg_workspace($workspace, $output)
state WORKSPACE_OUTPUT_WORD:
output = word
-> call cfg_workspace($workspace, $output); WORKSPACE_OUTPUT_WORD
end
-> INITIAL
# ipc-socket <path>
state IPC_SOCKET: