This repository was archived by the owner on Dec 18, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 224
Script blocks with spaces in arguments will fail. #876
Comments
dougbu
added a commit
that referenced
this issue
Dec 1, 2014
- remove extra quotes around `cmd /c` arguments - prevented && and similar special cases - don't strip quotes surrounding command-line arguments - prevented command paths and arguments containing spaces - `CommandGrammar` may need additional generalizations - e.g. unquoted term can't contain more than one escape sequence - but it's probably good enough for now
@dougbu is this issue fixed? |
the issue is not fixed. for example, if I add
to a project.json and
has this bug been triaged and assigned to a milestone? |
dougbu
added a commit
that referenced
this issue
Mar 29, 2015
- remove extra quotes around `cmd /c` arguments - prevented && and similar special cases - don't strip quotes surrounding command-line arguments - prevented command paths and arguments containing spaces - `CommandGrammar` may need additional generalizations - e.g. unquoted term can't contain more than one escape sequence - but it's probably good enough for now
@dougbu Beta5 |
@muratg OK I'll update my old branches... |
dougbu
added a commit
that referenced
this issue
May 22, 2015
- remove extra quotes around `cmd /c` arguments - prevented && and similar special cases - don't strip quotes surrounding command-line arguments - prevented command paths and arguments containing spaces - `CommandGrammar` may need additional generalizations - e.g. unquoted term can't contain more than one escape sequence - but it's probably good enough for now nit: - let VS do its thing with test services
dougbu
added a commit
that referenced
this issue
May 22, 2015
- remove extra quotes around `cmd /c` arguments - prevented && and similar special cases - don't strip quotes surrounding command-line arguments - prevented command paths and arguments containing spaces note: - `CommandGrammar` may need additional generalizations - e.g. unquoted term can't contain more than one escape sequence - but it's probably good enough for now - _not_ adding quotes around variables replacements inserted into commands - no way of determining if replacement is already quoted - basically, leave it to project.json author to perform appropriate quoting for their platform nit: - let VS do its thing with test services
dougbu
added a commit
that referenced
this issue
May 23, 2015
- remove extra quotes around `cmd /c` arguments - prevented && and similar special cases - don't strip quotes surrounding command-line arguments - prevented command paths and arguments containing spaces note: - `CommandGrammar` may need additional generalizations - e.g. unquoted term can't contain more than one escape sequence - but it's probably good enough for now - _not_ adding quotes around variables replacements inserted into commands - no way of determining if replacement is already quoted - basically, leave it to project.json author to perform appropriate quoting for their platform nit: - let VS do its thing with test services
dougbu
added a commit
that referenced
this issue
May 24, 2015
- remove extra quotes around `cmd /c` arguments - prevented && and similar special cases - don't strip quotes surrounding command-line arguments - prevented command paths and arguments containing spaces note: - `CommandGrammar` may need additional generalizations - e.g. unquoted term can't contain more than one escape sequence - but it's probably good enough for now - _not_ adding quotes around variables replacements inserted into commands - no way of determining if replacement is already quoted - basically, leave it to project.json author to perform appropriate quoting for their platform nit: - let VS do its thing with test services
dougbu
added a commit
that referenced
this issue
May 24, 2015
- remove extra quotes around `cmd /c` arguments - prevented && and similar special cases - don't strip quotes surrounding command-line arguments - prevented command paths and arguments containing spaces note: - `CommandGrammar` may need additional generalizations - e.g. unquoted term can't contain more than one escape sequence - but it's probably good enough for now - _not_ adding quotes around variables replacements inserted into commands - no way of determining if replacement is already quoted - basically, leave it to project.json author to perform appropriate quoting for their platform nit: - let VS do its thing with test services
Per offline conversation with @davidfowl, postponing to Beta 6. Need to research Linux / Mac failures with fix (PR #1931) in place. |
dougbu
added a commit
that referenced
this issue
Jun 1, 2015
- remove extra quotes around `cmd /c` arguments - prevented && and similar special cases - don't strip quotes surrounding command-line arguments - prevented command paths and arguments containing spaces note: - `CommandGrammar` may need additional generalizations - e.g. unquoted term can't contain more than one escape sequence - but it's probably good enough for now - _not_ adding quotes around variables replacements inserted into commands - no way of determining if replacement is already quoted - basically, leave it to project.json author to perform appropriate quoting for their platform nit: - let VS do its thing with test services
dougbu
added a commit
that referenced
this issue
Jun 2, 2015
- remove extra quotes around `cmd /c` arguments - prevented && and similar special cases - don't strip quotes surrounding command-line arguments - prevented command paths and arguments containing spaces note: - `CommandGrammar` may need additional generalizations - e.g. unquoted term can't contain more than one escape sequence - but it's probably good enough for now - _not_ adding quotes around variables replacements inserted into commands - no way of determining if replacement is already quoted - basically, leave it to project.json author to perform appropriate quoting for their platform nit: - let VS do its thing with test services
dougbu
added a commit
that referenced
this issue
Jun 2, 2015
- don't strip quotes surrounding command-line arguments when used in `scripts` - prevented command paths and grouping arguments containing spaces - pass `preserveSurroundingQuotes` into `CommandGrammar` to control stripping - use `cmd /s /c` when executing `scripts` commands on Windows - allows `&&` and similar - add functional tests of commands and scripts (together with `dnu restore`) - no `dnu restore` for .NET Core due to extra time required note: - `CommandGrammar` may need additional generalizations - e.g. unquoted term can't contain more than one escape sequence - but it's probably good enough for now - _not_ adding quotes around variables replacements inserted into commands - no way of determining if replacement is already quoted - basically, leave it to project.json author to perform appropriate quoting for their platform nits: - let VS do its thing with test services - make `CommandGrammar` constructor private; used only in `Process()` method
dougbu
added a commit
that referenced
this issue
Jun 2, 2015
- don't strip quotes surrounding command-line arguments when used in `scripts` - prevented command paths and grouping arguments containing spaces - pass `preserveSurroundingQuotes` into `CommandGrammar` to control stripping - use `cmd /s /c` when executing `scripts` commands on Windows - allows `&&` and similar - add functional tests of commands and scripts (together with `dnu restore`) - no `dnu restore` for .NET Core due to extra time required note: - `CommandGrammar` may need additional generalizations - e.g. unquoted term can't contain more than one escape sequence - but it's probably good enough for now - _not_ adding quotes around variables replacements inserted into commands - no way of determining if replacement is already quoted - basically, leave it to project.json author to perform appropriate quoting for their platform nits: - let VS do its thing with test services - make `CommandGrammar` constructor private; used only in `Process()` method
dougbu
added a commit
that referenced
this issue
Jun 3, 2015
- don't strip quotes surrounding command-line arguments when used in `scripts` - prevented command paths and grouping arguments containing spaces - pass `preserveSurroundingQuotes` into `CommandGrammar` to control stripping - use `cmd /s /c` when executing `scripts` commands on Windows - allows `&&` and similar - add functional tests of commands and scripts (together with `dnu restore`) - no `dnu restore` for .NET Core due to extra time required note: - `CommandGrammar` may need additional generalizations - e.g. unquoted term can't contain more than one escape sequence - but it's probably good enough for now - _not_ adding quotes around variables replacements inserted into commands - no way of determining if replacement is already quoted - basically, leave it to project.json author to perform appropriate quoting for their platform nits: - let VS do its thing with test services - make `CommandGrammar` constructor private; used only in `Process()` method
dougbu
added a commit
that referenced
this issue
Jun 3, 2015
- don't strip quotes surrounding command-line arguments when used in `scripts` - prevented command paths and grouping arguments containing spaces - pass `preserveSurroundingQuotes` into `CommandGrammar` to control stripping - support expected shell capabilities such as quoting command and redirections - use `cmd /s /c` when executing `scripts` on Windows - use `/bin/bash -c` when executing `scripts` on Linux - add functional tests of commands and scripts (together with `dnu restore`) - no `dnu restore` for .NET Core due to extra time required note: - `CommandGrammar` may need additional generalizations - e.g. unquoted term can't contain more than one escape sequence - but it's probably good enough for now - _not_ adding quotes around variables replacements inserted into commands - no way of determining if replacement is already quoted - basically, leave it to project.json author to perform appropriate quoting for their platform nits: - let VS do its thing with test services - make `CommandGrammar` constructor private; used only in `Process()` method - update a few `ScriptExecutor` comments, long lines, et cetera
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
ScriptExecutor will remove the quotes in script block unconditionally, as a result user can't wrap argument in quotes.
The text was updated successfully, but these errors were encountered: