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". description: Read and write files limited to the current directory.
functions:
execute-interactive:
- code: |
red
!/bin/sh
file-write: file-write:
- code: | - code: |
red file_to_write red file_to_write
a
data
.
w w
sudo-enabled: q
file-read:
- code: | - code: |
sudo red red file_to_read
!/bin/sh ,p
suid-limited: q
- code: |
./red
!/bin/sh
--- ---