Languages Features Creators CSV Resources Challenges Add Language
GitHub icon

fish

fish - Programming language

< >

fish, aka friendly interactive shell, is a programming language created in 2005.

#122on PLDB 18Years Old 24.4kUsers
1Books 6Papers 0Repos

Try now: Riju · TIO

The friendly interactive shell (fish) is a Unix shell that attempts to be more interactive and user-friendly than those with a longer history (i.e. most other Unix shells) or those formulated as function-compatible replacements for the aforementioned (e.g. zsh, the Falstad shell). Read more on Wikipedia...


Example from Riju:
echo "Hello, world!"
Example from hello-world:
#!/usr/bin/env fish echo "Hello World"
Example from Linguist:
function eval -S -d "Evaluate parameters as a command" # If we are in an interactive shell, eval should enable full # job control since it should behave like the real code was # executed. If we don't do this, commands that expect to be # used interactively, like less, wont work using eval. set -l mode if status --is-interactive-job-control set mode interactive else if status --is-full-job-control set mode full else set mode none end end if status --is-interactive status --job-control full end echo "begin; $argv ;end eval2_inner <&3 3<&-" | . 3<&0 set -l res $status status --job-control $mode return $res end
Example from Wikipedia:
string replace --regex '.*?\.(.*)' '$1' a.b.c #b.c string replace --regex '.*\.(.*)' '$1' a.b.c #c string replace --regex '(.*)\..*' '$1' a.b.c #a.b string replace --regex '(.*?)\..*' '$1' a.b.c #a

Language features

Feature Supported Token Example
Strings ✓ "
"Hello world"
Print() Debugging ✓ echo
Line Comments ✓ #
# A comment
Comments ✓
Semantic Indentation X

Books about fish from ISBNdb

title authors year publisher
When Do Fish Sleep? and Other Imponderables of Everyday Life David Feldman 1990 HarperPerennial

Publications about fish from Semantic Scholar

title authors year citations influentialCitations
Programming in FISh C. Jay 1999 23 3
Do the Fish Really Need Remote Control? A Proposal for Self-Active Objects in Oberon J. Gutknecht 1997 14 1
Automatic System to Fish Feeder and Water Turbidity Detector Using Arduino Mega H. Hendri and S. Enggari and Mardison and M. R. Putra and L. N. Rani 2019 5 0
Design Approach to Fish Data Identification Tag via RFID T. Hla and Z. M. Aung 2009 4 0
Simulation of drying process of secondary products of fish cutting and description of the main processes of heat and moisture transfer in the model O. Dvoryaninova and A. Sokolov 2018 1 0
IoT-Based Monitoring and Design of Automatic Fish Drying Equipment Using Fuzzy Logic Y. Alvinika and D. Setyohadi and M. Sulistyoningsih 2021 1 0
forth.html · fish.html · mips.html

View source

- Build the next great programming language · Search · Day 213 · About · Blog · Acknowledgements · Traffic · Traffic Today · GitHub · feedback@pldb.com