-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.md
29 lines (16 loc) · 840 Bytes
/
index.md
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
# :srcref:fn=src/lcdoc/mkdocs/lp/plugs/bash/__init__.py,t=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`](https://docs.python.org/3/library/subprocess.html) style.
## Example
```bash lp:bash addsrc
ls -lta --color=always /etc | head -n 20
```
## Parameters and Syntax
We have dedicated sections for those:
- [Parameters](../parameters.md).
- [Syntax](../syntax.md).
## 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](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop), i.e. a nodejs
session (...).
See [here](./sessions.md) for more about that.