Skip to content

Consider changing "run" to use temporary script files #1

Description

@solvingj

I noticed this in azure pipelines log:

##[command]"C:\windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "D:\a\_temp\e89baa3f-7c45-4af5-90e8-16c62e8dbc25.cmd""

and this on linux

[command]/bin/bash --noprofile --norc /home/vsts/work/_temp/74d504a3-043d-4534-a3f4-cb1c9041ed03.sh

I've seen the pattern in jenkins logs and other logs as well. I'm sure that we'll hit situations where people want to run command-lines requiring quotes, and then escaping various characters will start to become a real nuisance. I think this technique is probably the most reliable approach.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions