Rakuish — AUDIT-FIXES-0.71.4

0.71.4 审计修复记录

  • 日期:2026-11-12

  • 对象:main @ 0.71.4(基于 0.71.3)

  • 范围:审计 M-8 / M-9;测试环境 NO_COLOR 隔离

M-8 · Shell 参数启发式误伤

  • 引号内的 ;、(、)、| 等不再触发“交回 Raku”: echo "a;b"、echo "file(1).txt" 作为字面参数处理。

  • 只检查引号外的元字符;$NAME 仍按会话 env 展开,未展开的 $var 继续交回 Raku。

  • 新增 SHELL-COMMANDS:只包含真正由 Shell 分发的命令; write / append / exec / env / ls-table 等 Raku API 保留在 COMMANDS 中用于 help / 补全,但执行时交回 Raku。

  • t/10 新增引号内标点回归。

M-9 · Agent 未知选项

  • bin/rakuish-agent 增加 AGENT-OPTIONS 白名单。

  • 未知选项(如 --allowlist git)直接退出 2,并给出“未知选项”提示, 不再静默变成空配置。

  • t/07 新增未知选项回归。

测试环境

  • t/15-repl-ui.t 在测试期间临时移除 NO_COLOR / FORCE_COLOR, 避免宿主环境导致 zef install 误报颜色测试失败。

验证

prove6 -Ilib t
bash tools/run-all.sh
zef install . --force-install

Rakuish v0.161.4

Raku 原生的命令与脚本环境(API v3):Raku 表达式 + `!` argv、会话级 Sys 文件 / 进程 API、DSL 短命令、可扩展 Command 注册表、无 magic 的 REPL、全权限本地执行与统一审计。v2 的 bash 子集 / %magic / 独立 shell 引擎已于 0.34.0 整体删除,只剩一套语义。

Authors

  • zef:skyter10086

License

MIT

Dependencies

JSON::FastTerminal::LineEditorTerminal::APIArrow::IPC:ver<0.1.0+>

Test Dependencies

Provides

  • Rakuish::Audit
  • Rakuish::CLI
  • Rakuish::Command
  • Rakuish::DSL
  • Rakuish::Data
  • Rakuish::Data::Arrow
  • Rakuish::Data::CsvOptions
  • Rakuish::Data::Cursor
  • Rakuish::Data::Duck
  • Rakuish::Data::Engine
  • Rakuish::Data::Engine::DuckDB
  • Rakuish::Data::Engine::SQLite
  • Rakuish::Data::Pager
  • Rakuish::Data::Stream
  • Rakuish::Data::Table
  • Rakuish::Display
  • Rakuish::Eval
  • Rakuish::Eval::Protocol
  • Rakuish::Eval::Proxy
  • Rakuish::Eval::Server
  • Rakuish::Incomplete
  • Rakuish::Kernel
  • Rakuish::Kernel::Factory
  • Rakuish::Kernel::Notebook
  • Rakuish::Py
  • Rakuish::REPL::Chrome
  • Rakuish::REPL::Complete
  • Rakuish::REPL::Highlight
  • Rakuish::REPL::Hints
  • Rakuish::REPL::Introspect
  • Rakuish::REPL::Keymap
  • Rakuish::REPL::Methods
  • Rakuish::REPL::Plugins
  • Rakuish::REPL::Session
  • Rakuish::REPL::Session::Cells
  • Rakuish::REPL::Session::Commands
  • Rakuish::REPL::Session::Completion
  • Rakuish::REPL::Session::Config
  • Rakuish::REPL::Session::Diagnostics
  • Rakuish::REPL::Session::Exec
  • Rakuish::REPL::Session::Persistence
  • Rakuish::REPL::Session::Replay
  • Rakuish::REPL::Shell
  • Rakuish::REPL::SqlComplete
  • Rakuish::Result
  • Rakuish::Result::Renderer
  • Rakuish::Snapshot
  • Rakuish::Store
  • Rakuish::Sys
  • Rakuish::Sys::Console
  • Rakuish::Sys::FS
  • Rakuish::Sys::JobTable
  • Rakuish::Sys::PosixSpawn
  • Rakuish::Sys::Proc
  • Rakuish::Sys::Term
  • Rakuish::Sys::WinJob

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.