mirror of
git://git.sv.gnu.org/sed
synced 2026-11-21 01:43:22 +03:00
d8e71fe737ce850e41c13585cdcc2b6fe89f77a5
In sandbox mode, r/w/e commands are not allowed. This ensures sed operates only on files designated on the command line, and cannot execute external programs. * sed/sed.c (sandbox): New option variable. (usage): List new option. (main): Accept new option in getopt. * sed/sed.h (sandbox): New extern option variable. * sed/compile.c (DISALLOWED_CMD): New error message. (read_filename): Abort in sandbox mode (r/w commands). (compile_program): Abort on 'e' in sandbox mode. * testsuite/sandbox.sh: Test new option. * testsuite/local.mk: Add new test. * NEWS: Mention new option. * doc/sed-in.texi, doc/sed.texi: Document new option.
This is the GNU implementation of sed, the Unix stream editor. GNU Sed website: https://www.gnu.org/software/sed/ See the NEWS file for a brief summary and the ChangeLog for more detailed descriptions of changes. See the file INSTALL for generic compilation and installation instructions. See the file BUGS for instructions about reporting bugs. See the files AUTHORS and THANKS for a list of authors and other contributors. After installation run 'sed --help' or 'man sed' for short usage information, and 'info sed' for the complete manual. The manual is also available on sed's website.
Description
SED (stream editor) - неинтерактивный текстовый редактор командной строки
https://www.gnu.org/software/sed/
3 MiB
0 Stars
1 Watchers
0 Forks
Languages
Shell
43%
C
26.4%
Perl
16.5%
sed
7.3%
Makefile
5.2%
Other
1.6%