Skip to content

docs: Calling PowerShell from niu; README style pass - #253

Merged
caomengxuan666 merged 2 commits into
masterfrom
docs/ps-calling
Oct 10, 2026
Merged

caomengxuan666 merged 2 commits into
masterfrom
docs/ps-calling

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Two documentation changes.

1. New section "Calling PowerShell from niu" (docs/src/platform-support.md)

Documents the behavior reported in niubash#203: niu is a full bash, so $var / $env:TEMP inside a PowerShell command string is expanded by bash before PowerShell ever starts, and an undefined variable expands to the empty string. The section states the #203 ruling plainly (bash semantics, not a bug) and covers the three workarounds verified in that issue:

  1. \$ escaping inside double quotes
  2. keeping the $ inside bash single quotes
  3. writing a .ps1 and running powershell -File (recommended), which needs -ExecutionPolicy Bypass because Windows clients default to a Restricted script execution policy

The page is English-only today (the mdBook is single-language, language = "en" in docs/book.toml), so there is no zh page to sync.

Refs #203.

2. README.md style pass (no fact changes)

Audited against the repo writing standards; three wording-only edits:

  • "users are literally voting to escape" -> drops the empty intensifier
  • "PowerShell is a genuinely powerful automation language" -> drops the hollow intensifier (FAQ meaning unchanged: still explicitly not a hit piece on PowerShell)
  • "niubash ships its Windows-native completion" -> "niubash ships it complete on Windows" (garbled phrasing; README-zh's 完全体 confirms the intent)

Every command, link, version, and table is untouched, verified line-by-line via git diff. README-zh.md went through the same audit and needed no changes, so it is left as-is.

@caomengxuan666
caomengxuan666 merged commit c237783 into master Oct 10, 2026
3 of 9 checks passed
@caomengxuan666
caomengxuan666 deleted the docs/ps-calling branch October 10, 2026 06:52
caomengxuan666 added a commit that referenced this pull request Oct 10, 2026
…notes draft (#254)

- Version 1.3.4 -> 1.4.0 (workspace root + crates/niubash-runtime;
  Cargo.lock synced; internal niubash-runtime dep requirement aligned
  1.2.5 -> 1.4.0). The rubash engine requirement stays 1.3.4: it is
  semver-open (^1.3.4 admits the engine's 1.4.0), and the committed
  [patch] resolves it to the local ../rubash worktree, whose Cargo.toml
  still says 1.3.4 until the engine cuts its own release.
- CHANGELOG: the Unreleased section becomes [1.4.0] - 2026-10-10. Also
  repairs the committed merge damage from #243 (stray conflict marker
  and the #241 doctor-advice entry glued onto the carapace entry) and
  folds in the merged cycle: #235 #239 #246 #247 #250 #251 #252 #253
  plus a compact rubash 1.4.0 engine summary. #240's P2-batch content
  stays under [1.3.4] where the file already records it (no dup).
- docs/release-notes-1.4.0-draft.md: zh+en draft release notes
  (Added / Fixed / Performance), winuxcmd #1151/#1154-#1157 marked as
  in-flight for the coordinator, plus the local verification log:
  release build PASS (niu.exe 10.6 MB), MSIX packed unsigned with a
  placeholder identity (5.1 MB), wpm-source main carries all four
  preinstall packages, and cargo publish --dry-run chain findings
  (rubash -> niubash-runtime -> niubash, blocked on the engine's
  crates.io release).

No tag, no release workflow trigger, no in-flight PRs merged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant