Update red.md

This commit is contained in:
George O 2018-08-20 14:38:06 +01:00 committed by GitHub
parent 76c906d168
commit 9e196ad7f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,20 +1,16 @@
---
description: Short for "restricted ed".
functions:
execute-interactive:
- code: |
red
!/bin/sh
description: Read and write files limited to the current directory.
file-write:
- code: |
red file_to_write
a
data
.
w
sudo-enabled:
q
file-read:
- code: |
sudo red
!/bin/sh
suid-limited:
- code: |
./red
!/bin/sh
red file_to_read
,p
q
---