pkg.soopen package index

brew / 排名 8096

使用 Homebrew, Nix, apt 安装 babelfish

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install babelfish

local Homebrew formula metadata

Linux

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

nixpkgs package indexes · babelfish · 来源: raw.githubusercontent.com

Debian apt已验证 · 92%
sudo apt install python3-babelfish

Debian stable package indexes · python3-babelfish · 来源: deb.debian.org

概览

软件包摘要

Translate bash scripts to fish

命令和别名

  • babelfish

历史

项目历史与用法

babelfish is a small command-line translator that converts bash shell snippets or scripts into fish shell code. Its README frames it as a faster alternative to running bash-backed compatibility layers every time fish needs to source shell setup code.

项目历史

The project was created by Bouke Haarsma to avoid relying on fish-foreign-env or bass for repeated bash process execution. Instead, babelfish parses shell code with mvdan.cc/sh and emits equivalent fish code where possible.

The public GitHub releases show a 1.0.0 release in January 2021, a 1.1.0 release shortly after, and a 1.2.0 release in June 2023. The README still describes limitations, including untranslated variables such as BASH_SOURCE and incomplete arithmetic-expression support.

采用历史

babelfish's adoption is niche and shell-specific. The README documents Homebrew and Go installation, and the package metadata in this batch shows Homebrew and Nix packaging for this Go-based translator.

Its practical audience is fish users who need to consume bash-oriented environment setup scripts, version-manager hooks, or shell snippets without leaving fish or spawning bash repeatedly.

使用方式

Users pipe bash code into babelfish and can then inspect or source the generated fish code. The README demonstrates translating a function, exporting SSH_AUTH_SOCK, setting local variables, and using a shell hook to source bash-oriented setup scripts in fish.

Because its translation coverage is incomplete, babelfish is best treated as a pragmatic bridge for common shell setup patterns rather than a perfect bash interpreter.

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

babelfish is package-nerd interesting in the small-tool sense: it exists to smooth over the mismatch between package ecosystems that ship bash activation scripts and users who prefer fish.

It also shows a common CLI pattern in modern packaging: take a mature parser library, here mvdan.cc/sh, and wrap it in a focused translator that solves one irritating shell integration problem.

时间线

  • 2021: babelfish 1.0.0 is released on GitHub.
  • 2021: babelfish 1.1.0 follows with continued maintenance.
  • 2023: babelfish 1.2.0 is released on GitHub.
  • 2026: Package metadata in this batch shows babelfish still present in Homebrew and Nix.

Related projects

  • fish is the target shell for generated output.
  • bash is the source shell language babelfish translates from.
  • fish-foreign-env and bass are named by the README as earlier approaches babelfish was intended to avoid for performance reasons.
  • mvdan.cc/sh provides the shell parser used by babelfish.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
babelfish可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

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

页面生成时间2026-08-03
管理器版本1.2.1
管理器更新时间
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:babelfish
版本1.2.1
软件包管理器Homebrew
主页https://github.com/bouk/babelfish
仓库https://github.com/bouk/babelfish
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

python3-babelfish 0.6.1-1

library to work with countries and languages (Python 3)

https://github.com/Diaoul/babelfish

sudo apt install python3-babelfish
  • Section: python
  • Architecture: all
  • Source Package: babelfish
  • 4 依赖
  • normalized package name match
  • 匹配方式:Babelfish
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-babelfish from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

babelfish

nix profile install nixpkgs#babelfish
  • normalized package name match
  • 匹配方式:Babelfish
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: babelfish from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

python3-babelfish 0.6.0-2

library to work with countries and languages (Python 3)

https://github.com/Diaoul/babelfish

sudo apt install python3-babelfish
  • Section: universe/python
  • Architecture: all
  • Source Package: babelfish
  • 2 依赖
  • normalized package name match
  • 匹配方式:Babelfish
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python3-babelfish from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

来源线索

由仓库数据生成

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

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation