Skip to content

bash ¤

This is the default evaluation mode, i.e. run when no mode parameter is given in the header.

It runs the given statements within a bash shell, subprocess.call style.

Example¤

LP Source:

 ```bash lp:bash addsrc
 ls -lta --color=always /usr/bin | head -n 20
 ```

Result:

$ ls -lta --color=always /usr/bin | head -n 20

$ ls -lta --color=always /usr/bin | head -n 20
total 1032300
drwxr-xr-x  2 root root       73728 Aug  2 19:28 .
lrwxrwxrwx  1 root root          41 Jul 28 16:34 go -> /opt/hostedtoolcache/go/1.24.5/x64/bin/go
lrwxrwxrwx  1 root root          44 Jul 28 16:34 gofmt -> /opt/hostedtoolcache/go/1.24.5/x64/bin/gofmt
-rwxr-xr-x  1 root root     8208519 Jul 28 16:33 docker-credential-ecr-login
-rwxr-xr-x  1 root root    11440312 Jul 28 16:25 yq
lrwxrwxrwx  1 root root          32 Jul 28 16:24 julia -> /usr/local/julia1.11.6/bin/julia
-rwxr-xr-x  1 root root     3116618 Jul 28 16:22 composer
lrwxrwxrwx  1 root root          27 Jul 28 16:18 kapt -> /usr/share/kotlinc/bin/kapt
lrwxrwxrwx  1 root root          29 Jul 28 16:18 kotlin -> /usr/share/kotlinc/bin/kotlin
lrwxrwxrwx  1 root root          30 Jul 28 16:18 kotlinc -> /usr/share/kotlinc/bin/kotlinc
lrwxrwxrwx  1 root root          33 Jul 28 16:18 kotlinc-js -> /usr/share/kotlinc/bin/kotlinc-js
lrwxrwxrwx  1 root root          34 Jul 28 16:18 kotlinc-jvm -> /usr/share/kotlinc/bin/kotlinc-jvm
lrwxrwxrwx  1 root root          30 Jul 28 16:18 conda -> /usr/share/miniconda/bin/conda
lrwxrwxrwx  1 root root          35 Jul 28 16:17 gradle -> /usr/share/gradle-8.14.3/bin/gradle
lrwxrwxrwx  1 root root          38 Jul 28 16:17 mvn -> /usr/share/apache-maven-3.9.11/bin/mvn
lrwxrwxrwx  1 root root          45 Jul 28 16:10 chromium-browser -> /usr/local/share/chromium/chrome-linux/chrome
lrwxrwxrwx  1 root root          45 Jul 28 16:10 chromium -> /usr/local/share/chromium/chrome-linux/chrome
lrwxrwxrwx  1 root root          50 Jul 28 16:10 chromedriver -> /usr/local/share/chromedriver-linux64/chromedriver
lrwxrwxrwx  1 root root          41 Jul 28 16:07 geckodriver -> /usr/local/share/gecko_driver/geckodriver

Parameters and Syntax¤

We have dedicated sections for those:

Sessions¤

When you supply a session or new_session parameter, we will send the statements over into tmux and run them there - i.e. you may control blocking subprocesses, including REPLs, i.e. a nodejs session (...).

See here for more about that.