llvm-project
1c55313f - Treat `''` and `""` in Gnu-tokenized response files as an empty string argument. (#187566)

Commit
14 days ago
Treat `''` and `""` in Gnu-tokenized response files as an empty string argument. (#187566) This matches the behavior of gcc and also fixes an inconsistency with the way the same arguments would be parsed by the shell. For example, this command line passed directly on the shell: `command -option1 '' -option2` has three arguments: `"-option1"`, `""`, and `"-option2"`. However, if these are passed in a Gnu-tokenized response file today: ``` -option1 '' -option2 ``` The `''` is discarded and the command incorrectly has two arguments: `"-option1"` and `"-option2"`.
Author
Parents
Loading