GNU tar 的手册仅指出--restrict:
Run Code Online (Sandbox Code Playgroud)--restrict disable use of some potentially harmful options
谁能详细说明这些“有害”选项是什么?我在文档中找不到它。
当前禁用的唯一选项是当系统提示您替换多卷存档中的磁带时,--restrict能够使用该命令生成子 shell 。!
2005/12/06 New function. Disable '!' command if given --restrict option.
Run Code Online (Sandbox Code Playgroud)
参考: http: //git.savannah.gnu.org/gitweb/ ?p=tar.git;a=commit;h=ffc4fb7bdd03d095c46233770eb1a40fcaa3999c