Repository: MystenLabs/sui (language: rust)

Issue:
Sui CLI Bug - Windows Terminal
## Description
the sui cli on windows is buggy regarding the ptb command. The --assign parameter requires both <name> and <value> to be surrounded with double quotes or other wise the cli will not pick up that both belong together

## Steps to Reproduce Issue
Open windows powershell and run:
sui client ptb --assign forge @address --assign to_address @address --move-call address::example::new_sword forge 3 3 --assign sword --transfer-objects "[sword]" to_address --gas-budget 20000000

this does not work. But the following does work:
sui client ptb --assign "forge @address" --assign "to_address @address" --move-call address::example::new_sword forge 3 3 --assign sword --transfer-objects "[sword]" to_address --gas-budget 20000000


## Expected Result
It should work with or without the double quotes



Discussion / hints:
Thank you for opening this issue, a team member will review it shortly. Until then, please do not interact with any users that claim to be from Sui support and do not click on any links!
Hi @BuFuuu thanks for sharing this. 

Unfortunately, it's kinda tricky because different shells handle strings and quotes differently.

Were you using powershell or command prompt, or some other terminal?
Just PowerShell, and yes, it can be tricky!

I think it would be helpful to add a note to this page ([link](https://docs.sui.io/guides/developer/first-app/publish)) about this issue. Specifically, the --assign parameter should be enclosed in quotes.
Will do! Planning to also add something here: https://docs.sui.io/references/cli/ptb
Thanks!
Thanks for the amazingly quick response! SUI is awesome:)

Fix patch:
diff --git a/docs/content/references/cli/ptb.mdx b/docs/content/references/cli/ptb.mdx
index 8db6d5b1902ce..6d48e68b18534 100644
--- a/docs/content/references/cli/ptb.mdx
+++ b/docs/content/references/cli/ptb.mdx
@@ -5,6 +5,12 @@ description: The Sui Client PTB CLI enables a user to construct a PTB and execut
 
 The `client ptb` command allows you to specify the transactions for execution in a programmable transaction block (PTB) directly from your CLI or through bash scripts.
 
+:::warning
+
+The examples in this document were tested using a `bash` shell environment. Your experience might vary depending on how your shell interprets the input values (for example, zsh requires quotes around passed values in brackets: "[]"; whereas bash accepts them without quotes). On Windows, you might need to add even more quotes around arguments passed (for example, `--assign "forge @<FORGE-ID>"`).
+
+:::
+
 ## Commands
 
 The following list itemizes all the available args for the `sui client ptb` command. Use the `--help` for a long help version that includes some examples on how to use this command.


Test patch: