csh

1 program Added 2026-02-26T00:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled Evidence Report issue View issues
Aliases: C shell, C Shell
Provenance: commit b2dbbf9507 · authored 2026-02-26T12:18:05+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

7 sources · pl_id: pl/tcsh
LLM (this repo) · 1PldbLinguistPygmentsWikipediaHyperpolyglotWikidata · Q1064516

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

First appeared1978
LicenseBSD license

Extensions claimed by this language

4 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.tcshlinguistprimary12.6K files
.tcshpygmentsprimary12.6K files
.cshlinguistsecondary481.2K files
.cshpygmentssecondary481.2K files

Related languages

C Shell (0.80)Zsh (0.35)Tcsh (0.35)Scsh (0.27)Cell (0.25)

LLM-contributed programs

FizzBuzz

Provenance: commit b2dbbf9507 · authored 2026-02-26T12:18:05+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
code.csh · license: Public Domain · added: 2026-02-26T00:00:00Z
foreach i (1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100)
    if ($i % 15 == 0) then
        echo "FizzBuzz"
    else if ($i % 3 == 0) then
        echo "Fizz"
    else if ($i % 5 == 0) then
        echo "Buzz"
    else
        echo $i
    endif
end

Real programs from Software Heritage

1 sample mined from derived_datasets/<date>/contents/*.parquet, byte-verified against the SWH archive. Citation-grade qualified SWHIDs preserved.
starship.tcsh · 762 B · ext .tcsh · seen 407× in SWH
via unique-primary
swh:1:cnt:7d4b4b9a0eae07d50dbd63bf0029b417d9f648c0;origin=https://github.com/starship/starship;anchor=swh:1:rev:d21400a4784e17b7a4afe110155c01717f835388;path=/src/init/starship.tcsh
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
setenv STARSHIP_SHELL tcsh;
setenv STARSHIP_SESSION_KEY `::STARSHIP:: session`;
set USER_PRECMD = "`alias precmd`";
set USER_POSTCMD = "`alias postcmd`";
set STARSHIP_PRECMD = 'set STARSHIP_CMD_STATUS = $status;set STARSHIP_PATH = ::STARSHIP::;set STARSHIP_END_TIME = `$STARSHIP_PATH time`;set STARSHIP_DURATION = 0;if ( $STARSHIP_START_TIME != -1 ) @ STARSHIP_DURATION = $STARSHIP_END_TIME - $STARSHIP_START_TIME;set prompt = "`$STARSHIP_PATH prompt --status $STARSHIP_CMD_STATUS --cmd-duration $STARSHIP_DURATION`";set STARSHIP_START_TIME = -1';
set STARSHIP_POSTCMD = 'set STARSHIP_START_TIME = `::STARSHIP:: time`';
alias precmd "$STARSHIP_PRECMD;$USER_PRECMD";
alias postcmd "$STARSHIP_POSTCMD;$USER_POSTCMD";
set STARSHIP_START_TIME = `::STARSHIP:: time`;

Contribute — propose a file extension

Tell us where to find evidence about csh (mapped to pl/tcsh). 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/csh/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← csg csharp →