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 /etc | head -n 20
```
Result:
$ ls -lta --color=always /etc | head -n 20
$ ls -lta --color=always /etc | head -n 20
total 1116
-rw-r----- 1 root shadow 1229 Oct 4 21:02 shadow
-rw-r--r-- 1 root root 326 Oct 4 21:02 hosts
drwxr-xr-x 2 root root 20480 Oct 4 21:01 alternatives
drwxr-xr-x 4 root root 4096 Oct 4 21:01 ssh
-rw-r--r-- 1 root root 318 Oct 4 21:01 fstab
drwxr-xr-x 21 root root 4096 Oct 4 21:01 ..
drwxr-xr-x 138 root root 12288 Sep 30 14:07 .
-rw-r--r-- 1 root root 147 Sep 30 14:07 cgconfig.conf
-rw-r--r-- 1 root root 153 Sep 30 14:07 cgrules.conf
drwxr-xr-x 2 root root 4096 Sep 30 14:07 docker
-rw-r--r-- 1 root root 61593 Sep 30 14:07 ld.so.cache
-rw-r--r-- 1 root root 2678 Sep 30 14:07 environment
drwxr-xr-x 2 root root 4096 Sep 30 14:07 conf
drwxr-xr-x 2 root root 4096 Sep 30 14:07 vsts
drwxr-x--- 2 root root 4096 Sep 30 14:07 sudoers.d
-rw-r----- 1 root shadow 914 Sep 30 14:05 gshadow
-rw-r--r-- 1 root root 1074 Sep 30 14:05 group
-rw-r--r-- 1 root root 2230 Sep 30 14:05 passwd
-rw-r--r-- 1 root root 2231 Sep 30 14:05 passwd-
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.