# etsh を Homebrew, MacPorts でインストール

etsh のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:etsh
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install etsh
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install etsh
```

  証拠: MacPorts ports tree: shells/etsh/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:etsh
- **パッケージマネージャ:** Homebrew
- **バージョン:** 5.4.0
- **ソース概要:** Two ports of /bin/sh from V6 UNIX (circa 1975)
- **ホームページ:** <https://etsh.dev/>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- etsh (エイリアス)
- sh6 (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 5.4.0
## プロジェクトの歴史と使われ方

Etsh is a historical Unix shell package that maintains two ports of the Thompson shell from Sixth Edition Unix: an enhanced interactive-compatible shell named etsh and an unenhanced port named tsh. It is packaged less as a mainstream login shell and more as a living, buildable preservation of early Unix shell behavior.

### プロジェクトの歴史

The project is explicitly dedicated to preserving the Version 6 Unix `sh(1)` lineage. Its sources trace back to the Thompson shell, principally written by Ken Thompson at Bell Labs, with related V6 utilities such as glob, if, and goto included because they were part of the shell's practical command-file environment.

Jeffrey Allen Neitzel has maintained the etsh project since July 2003. The project keeps the historical interface available while adding enough portability and interactive-shell improvements for modern POSIX-like systems.

### 採用の歴史

Etsh's adoption is niche and heritage-oriented rather than mass-market. Official project notes emphasize successful builds on DragonFly BSD, FreeBSD, macOS, NetBSD, OpenBSD, OpenIndiana, and GNU/Linux, and the package appears in Unix-like ports systems for users who want the V6 shell experience on modern machines.

### 使われ方

Users run etsh or tsh as command interpreters, either interactively or for scripts that fit the V6 shell model. The usage guide frames the shells as a way to do useful work with a small shell plus classic Unix pipelines and external tools such as awk, expr, grep, and sed.

### パッケージ好きにとっての重要性

Etsh matters to package nerds because it is both software and executable computing history. Installing it through a package manager gives modern systems a maintained port of a pre-Bourne-shell command language, complete with the companion utilities needed for authentic behavior.

It is also a reminder that shell packaging is not just about default user shells: small historical interpreters need careful source provenance, licensing, manpages, and installation paths so they can coexist with modern `/bin/sh` implementations.

### タイムライン

- 1975: Sixth Edition Unix shipped with the Thompson shell as `/bin/sh`.
- 1979: Seventh Edition Unix replaced the Thompson shell with the Bourne shell, while retaining the older shell as `osh`.
- 2003: Jeffrey Allen Neitzel became principal developer and maintainer of the etsh project.
- 2019: Etsh 5.4.0 manual pages documented the maintained ports and their V6 shell lineage.

### Related projects

- tsh is the unenhanced Thompson shell port shipped by the same project, while glob, if, goto, and fd2 provide supporting shell functionality.
- The V6 Sh History site and TUHS source materials provide historical context for the original Thompson shell and related Unix manuals.

### ソース

- <https://etsh.dev/>
- <https://etsh.dev/about/>
- <https://etsh.dev/anoncvs/>
- <https://etsh.dev/usage/>
- <https://etsh.dev/man/_etsh.1.html>
- <https://v6sh.org/>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- MacPorts - etsh: normalized package name match | MacPorts ports tree: shells/etsh/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/etsh.yml](https://github.com/mxcl/pkgdb/blob/main/combined/etsh.yml)


## ソース

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