Community
Participate
Working Groups
ArgumentParser may fail when string contains quotes For example, following list of arguments given as a string fails: -I/opt/cell/sysroot/opt/cell/sdk/usr/spu/include -I"/home/dfferber/EclipseWorkspaces/runtime-cellide/multi_dma_ppu" -O0 -g3 -Wall -c -fmessage-length=0 -Winline -Wextra -fno-inline -mtune=cell -mfloat=fast -mdouble=fast -Wno-main -march=cell -mea32 -o/home/dfferber/EclipseWorkspaces/runtime-cellide/multi_dma_spu/sputiming/dma_spu.spuS -S It produces only two tokens: -I/opt/cell/sysroot/opt/cell/sdk/usr/spu/include and a second token containing all remaining characters. The correct result should be a token for each argument.
Found a switch case fall-thru that causes the bug. Added more test cases and added more comments to code.
Created attachment 91805 [details] A patch that fixes the bug This patch fixes the switch case fallthrough that caused the bug.
Applied. Please check and reopen if there are any problems.
Is working now.