4

I'm learning the Unix shell command language looking for a repository that contains the source code for the Almquist shell ("ash" / "dash") but I could not find it. Can you help me find the source? I'm looking for the source code to a minimal shell and it seems that the Almquist shell is one.

2 Answers2

11

The two widely used variants of ash nowadays are dash, which has a repository on kernel.org, and the Busybox ash, which has its own repository.

The Almquist Shell variants page lists many variants and provides links to their source code, including the original post on Usenet.

Stephen Kitt
  • 434,908
  • 2
    FreeBSD and NetBSD sh's are two other main variants, dash started as a fork of NetBSD sh and still regularly pulls changes from FreeBSD or NetBSD shs. – Stéphane Chazelas Apr 18 '16 at 16:13
1

The ash sources do not exist as a downloadable portable entity.

They only seem to exist in BSD specific trees that do not compile elsewhere.

Dash seems to be easy to find. Search for dash-0.5.8.tar.gz.

One of the results is: ftp://ftp.tuwien.ac.at/.vhost/www.linuxfromscratch.org/blfs/view/cvs/postlfs/dash.html

schily
  • 19,173