Bug
PowerShell treats @ as a special character (array/splatting operator). Running:
PowerShell interprets @prax as a variable reference, not a literal string. Drone receives monitor as the first arg instead of @prax.
Error: drone: unknown command 'monitor'
Workaround
Quote the argument:
drone '@prax' monitor run
Fix options
- Document in README/setup output — tell Windows users to quote
@branch args in PowerShell
- Create a
drone.ps1 wrapper — auto-detect and fix @ args before passing to the real drone
- Accept
prax without @ prefix — drone could treat drone prax monitor run as equivalent to drone @prax monitor run
Option 3 is probably best UX. Option 1 is simplest.
Not affected
- Git Bash on Windows (works fine)
- Linux/macOS bash/zsh (works fine)
- Only PowerShell has this issue
Found during Windows 10 setup testing.
Bug
PowerShell treats
@as a special character (array/splatting operator). Running:drone @prax monitor runPowerShell interprets
@praxas a variable reference, not a literal string. Drone receivesmonitoras the first arg instead of@prax.Error:
drone: unknown command 'monitor'Workaround
Quote the argument:
drone '@prax' monitor runFix options
@branchargs in PowerShelldrone.ps1wrapper — auto-detect and fix@args before passing to the real dronepraxwithout@prefix — drone could treatdrone prax monitor runas equivalent todrone @prax monitor runOption 3 is probably best UX. Option 1 is simplest.
Not affected
Found during Windows 10 setup testing.