Ash

1 program Added 2026-02-08T16:55:54Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Almquist shell, ash
Provenance: commit b3f25647ad · authored 2026-02-08T17:56:33+01:00 · agent claude-code · model sonnet

Sources mentioning this language

2 sources · pl_id: pl/ash
LLM (this repo) · 1Esolang

Related languages

Dash (0.68)C Shell (0.26)Nushell (0.21)Zsh (0.21)Scsh (0.21)

LLM-contributed programs

Factorial Calculator

Provenance: commit b3f25647ad · authored 2026-02-08T17:56:33+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.sh · added: 2026-02-08T16:55:54Z
#!/bin/ash
# Simple factorial calculator in Ash

factorial() {
    n=$1
    if [ "$n" -le 1 ]; then
        echo 1
    else
        prev=$(factorial $((n - 1)))
        echo $((n * prev))
    fi
}

# Main program
echo "Factorial Calculator"
for i in 1 2 3 4 5 6 7 8 9 10; do
    result=$(factorial $i)
    echo "$i! = $result"
done

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about Ash (mapped to pl/ash). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Ash/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← ASF+SDF ashmedai →