Bash playground

greet() {
    echo "Hello, $1!"
}

greet "World"

Bash is the most popular Linux shell. It is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and the C shell (csh).

⛫ homepage • αω tutorial • ⚘ community

Sandbox details

Bash version:       5.2
sandbox engine:     codapi
sandbox name:       bash
allowed commands:   run
in-browser:         ✘

Usage example:

<pre><code>...</code></pre>
<codapi-snippet sandbox="bash" editor="basic"></codapi-snippet>

Documentation