Sha256: 1268f075a53ef77b3983fef8809fd59fa451d2ac6dd0a4eac642e08f60b3a8b9

Contents?: true

Size: 812 Bytes

Versions: 2

Compression:

Stored size: 812 Bytes

Contents

Demonstrate setting a variable interactively for use in generated scripts.

```opts :(document_options)
dump_inherited_lines: true
pause_after_script_execution: false
user_must_approve: false
```

::: Set VARIABLE to "A"

```link :set_to_A +(set_to_A)
block: display_variable
```

```bash :(set_to_A)
VARIABLE=A
```

```link :set_to_A_eval +(set_to_A_eval)
block: display_variable
eval: true
```

```bash :(set_to_A_eval)
echo VARIABLE=A
```

::: Set VARIABLE to "B"

```link :set_to_B +(set_to_B)
block: display_variable
```

```bash :(set_to_B)
VARIABLE=B
```

```link :set_to_B_eval +(set_to_B_eval)
block: display_variable
eval: true
```

```bash :(set_to_B_eval)
echo VARIABLE=B
```

::: Display value of VARIABLE

```bash :display_variable
source bin/colorize_env_vars.sh
colorize_env_vars '' VARIABLE
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
markdown_exec-1.8.7 examples/linked.md
markdown_exec-1.8.6 examples/linked.md