Skip to content

Spaces in parameters do breaks invokeation of the inline script #13

@pgroene

Description

Not sure where to put this, when passing a variable that has spaces in it like so: -path $(System.DefaultWorkingDirectory) the variable itself becomes truncated:

2018-08-15T14:59:16.1945400Z ##[debug]VstsTaskSdk 0.6.2 commit b4160c33da0010bd83279e9ffa9bbf13bcbd1ce2
2018-08-15T14:59:16.2855447Z ##[debug]Entering D:\TFS Agent_work_tasks\InlinePowershell_31f040e5-e040-4336-878a-59a493355534\1.1.7\InlinePowershell.ps1.
2018-08-15T14:59:16.3095455Z ##[debug]Env:INPUT_SCRIPT: 'Param(
2018-08-15T14:59:16.3115420Z ##[debug] [string]$path
2018-08-15T14:59:16.3125468Z ##[debug])
2018-08-15T14:59:16.3135448Z ##[debug]Write-Output $path'
2018-08-15T14:59:16.3165515Z ##[debug]Env:INPUT_SCRIPTARGUMENTS: '-path D:\TFS Agent_work\r3\a'
2018-08-15T14:59:16.3465484Z ##[command]& 'D:\TFS Agent_work_temp\tmp14B7.ps1' -path D:\TFS Agent_work\r3\a
2018-08-15T14:59:16.3605498Z D:\TFS

Not sure if this is a bug or not but it's definitely not the intended outcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions