Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, Nix, apt 安装 yash

查看 yash 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install yash

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install yash

MacPorts ports tree · shells/yash/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add yash

Alpine Linux edge package indexes · yash · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install yash

Fedora Rawhide package metadata · yash · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#yash

nixpkgs package indexes · pkgs/by-name/ya/yash/package.nix · 来源: api.github.com

Ubuntu apt已验证 · 92%
sudo apt install yash

Ubuntu 24.04 LTS package indexes · yash · 来源: archive.ubuntu.com

概览

软件包摘要

Yet another shell: a POSIX-compliant command-line shell

历史

项目历史与用法

yash, Yet Another Shell, is Yuki Watanabe's POSIX-focused command-line shell. It aims to be highly POSIX-compliant while still offering interactive conveniences such as completion, prediction, arrays, aliases, extended globbing, and redirection features.

项目历史

Upstream NEWS records Yash 2.0 alpha0 as the first 2.x release on 2008-05-26. The project later moved to GitHub; the README says it is maintained on GitHub but was formerly on OSDN, and the GitHub repository was created on 2012-11-24.

A defining thread in Yash history is conformance work. NEWS records POSIX.1-2008 conformance in Yash 2.8 in April 2009, support for the 2013 edition of POSIX.1-2008 in 2.42 in August 2016, and support for POSIX.1-2008 Technical Corrigendum 2 in 2.44 in January 2017. The current README says Yash now fully supports POSIX.1-2024 except for listed limitations.

The project has stayed actively maintained in a conservative shell-tooling style. The README describes stable maintenance releases every three months or so, and GitHub releases show 2.61 published on 2026-03-03.

采用历史

Yash's adoption is niche compared with bash, zsh, dash, or fish, but it has a clear role for users who care about POSIX behavior, shell-language edge cases, and an interactive shell that does not primarily chase bash compatibility. Package managers such as Homebrew, MacPorts, Fedora, Nix, and Ubuntu carry it as an alternative shell rather than as a default system shell.

Its maintenance style also attracts shell implementers and portability-minded users: NEWS entries repeatedly track standard changes, built-in behavior, job control, pathname expansion, and line-editing details rather than splashy user-interface pivots.

使用方式

Users can run yash as an interactive shell, script interpreter, or login shell. The README documents startup files under `$XDG_CONFIG_HOME/yash/profile` or `~/.yash_profile` for login shells and `$XDG_CONFIG_HOME/yash/rc` or `~/.yashrc` for interactive configuration.

In practice it is useful for POSIX shell testing, portable script development, and users who want a smaller standards-oriented shell with interactive amenities such as command completion, history-based prediction, global aliases, arrays, and extended globbing.

为什么软件包爱好者会关心

yash is package-nerd significant because shells are both applications and compatibility surfaces. Packaging yash gives users a reproducible alternative interpreter for testing scripts against POSIX semantics without replacing the system `/bin/sh`.

It is also a good example of long-haul small-project maintenance: standards tracking, portability fixes, completion updates, and cautious release cadence matter more than branding. That makes it valuable in package collections even when its user base is specialized.

时间线

  • 2008-05-26: Yash 2.0 alpha0 is recorded as the first 2.x release.
  • 2009-04-18: Yash 2.8 NEWS states conformance to POSIX.1-2008.
  • 2012-11-24: magicant/yash repository is created on GitHub.
  • 2016-08-27: Yash 2.42 adds support for the 2013 edition of POSIX.1-2008.
  • 2017-01-17: Yash 2.44 adds support for POSIX.1-2008 Technical Corrigendum 2.
  • 2026-03-03: Yash 2.61 is released; the manual version matches 2.61.

Related projects

  • dash and bash are common comparison points for POSIX shell behavior and scripting compatibility.
  • zsh and fish occupy the more feature-forward interactive shell space that yash partially overlaps but does not try to clone.
  • yash-rs is the upstream author's Rust reimplementation project for a future extended POSIX shell.

安全态势

风险级别:yellow

generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • generalized runtime or code generation signal

信号

  • text:shell

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
$XDG_CONFIG_HOME/yash/profile~/.yash_profile$XDG_CONFIG_HOME/yash/rc~/.yashrc

可执行文件

已安装的可执行文件

命令类型暴露范围备注
yashcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-26
管理器版本2.61
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/magicant/yash

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息No cached GitHub release or tag data was available.https://github.com/magicant/yashnone 置信度

安装元数据

软件包元数据

软件包键brew:yash
版本2.61
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/yash
主页https://magicant.github.io/yash/
仓库https://github.com/magicant/yash
上游文档https://magicant.github.io/yash/doc
许可证GPL-2.0-or-later
源码归档https://github.com/magicant/yash/releases/download/2.61/yash-2.61.tar.xz
依赖gettext
macOS 提供的库ncurses
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameyash
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

yash

nix profile install nixpkgs#yash
  • normalized package name match
  • 匹配方式:Yash
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ya/yash/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

yash 2.55-2

yet another shell

https://yash.osdn.jp/

sudo apt install yash
  • Section: universe/shells
  • Architecture: amd64
  • 2 依赖
  • normalized package name match
  • 匹配方式:Yash
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: yash from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

git-yash-completion 2.60-r0

Yash completions for git

https://magicant.github.io/yash/

sudo apk add git-yash-completion
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: yash
  • 1 依赖
  • normalized package name match
  • 匹配方式:Yash
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: git-yash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

openssh-client-yash-completion 2.60-r0

Yash completions for openssh-client

https://magicant.github.io/yash/

sudo apk add openssh-client-yash-completion
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: yash
  • 1 依赖
  • normalized package name match
  • 匹配方式:Yash
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: openssh-client-yash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

subversion-yash-completion 2.60-r0

Yash completions for subversion

https://magicant.github.io/yash/

sudo apk add subversion-yash-completion
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: yash
  • 1 依赖
  • normalized package name match
  • 匹配方式:Yash
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: subversion-yash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

valgrind-yash-completion 2.60-r0

Yash completions for valgrind

https://magicant.github.io/yash/

sudo apk add valgrind-yash-completion
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: yash
  • 1 依赖
  • normalized package name match
  • 匹配方式:Yash
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: valgrind-yash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

yash 2.60-r0

Yet another shell

https://magicant.github.io/yash/

sudo apk add yash
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: yash
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Yash
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: yash from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

yash-binsh 2.60-r0

yash as /bin/sh

https://magicant.github.io/yash/

sudo apk add yash-binsh
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: yash
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Yash
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: yash-binsh from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

yash-completion 2.60-r0

Yet another shell (command-line completion)

https://magicant.github.io/yash/

sudo apk add yash-completion
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: yash
  • normalized package name match
  • 匹配方式:Yash
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: yash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

yash-doc 2.60-r0

Yet another shell (documentation)

https://magicant.github.io/yash/

sudo apk add yash-doc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: yash
  • normalized package name match
  • 匹配方式:Yash
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: yash-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

yash 2.61-1.fc45

Yet Another SHell

https://github.com/magicant/yash/

sudo dnf install yash
  • License: GPL-2.0-only
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: yash
  • 8 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Yash
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: yash from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

yash-doc 2.61-1.fc45

Documentation for yash

https://github.com/magicant/yash/

sudo dnf install yash-doc
  • License: CC-BY-SA-2.1-JP
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: yash
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Yash
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: yash-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
MacPorts95%

yash

sudo port install yash
  • normalized package name match
  • 匹配方式:Yash
MacPorts ports tree · api.github.com · MacPorts ports tree: shells/yash/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment