[Bug] Add notes around `Start-ADTProcess -ArgumentList` parsing differences for 4.1 compared to 4.0

Open
#145 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
42/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
powershell
Domain
documentation

Research direction

Start from the issue's Start-ADTProcess examples and inspect the website's documentation for that command. Document the quoted-argument parsing difference between versions 4.1.0 and 4.0.6, including the shown command-line results; completion should make the behavior and compatibility impact clear.

Written by the indexing model from the issue text.

Description

Prerequisites
PSAppDeployToolkit version

4.1.0

Describe the bug

When starting a process with Start-ADTProcess if an argument has quotes then the whole argument gets quotes and the internal quotes get escaped.

I am not sure if that is supposed to work but the install I am updating doesn't seem to like it.

Steps to reproduce

Simple example from command line.

  1. Start-ADTProcess -FilePath 'cmd.exe' -ArgumentList @('/option1', '/option2 "thing"')
  2. View command line in task manger
    "C:\Windows\system32\cmd.exe" /option1 "/option2 \"thing\""

Doing the same thing with 4.0.6 the command line is, which is the expected result.
"C:\Windows\system32\cmd.exe" /option1 /option2 "thing"

Environment data
Windows 11
Dominant language
MDX
Stars
5
Forks
7
Avg merge
3h 46m
Merged PRs (30d)
5

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PSAppDeployToolkit/website

All issues in PSAppDeployToolkit/website

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.