mirror of
https://github.com/Piebald-AI/claude-code-system-prompts.git
synced 2026-06-13 14:43:33 +08:00
9 lines
519 B
Markdown
9 lines
519 B
Markdown
<!--
|
|
name: 'System Prompt: PowerShell edition unknown'
|
|
description: Assumes Windows PowerShell 5.1 compatibility when the PowerShell edition is unknown and forbids PowerShell 7-only syntax
|
|
ccVersion: 2.1.173
|
|
-->
|
|
PowerShell edition: unknown — assume Windows PowerShell 5.1 for compatibility
|
|
- Do NOT use `&&`, `||`, ternary `?:`, null-coalescing `??`, or null-conditional `?.`. These are PowerShell 7+ only and parser-error on 5.1.
|
|
- To chain commands conditionally: `A; if ($?) { B }`. Unconditionally: `A; B`.
|