📄 rsh.tests
字号:
# test restricted shell mode -- these should all be errors## things not tested for:# adding builtins dynamically with enable -f# importing function definitions from environmentset -rcd /PATH=$PATH:/usr/local/binSHELL=/bin/sh/bin/sh -c 'echo /bin/sh executed'. ./source.sub3rm -f /tmp/restrictedecho abc > /tmp/restrictedif [ -f /tmp/restricted ]; then echo oops 1 -- outputfiecho abc >> /tmp/restrictedif [ -f /tmp/restricted ]; then echo oops 2 -- appendficommand -p dateset +rset +o restrictedexec /bin/dateecho $0: after exec
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -