mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
Patch by Rob Landley, work in progress update, fixes lots of bugs,
introduces a few others (but they are being worked on)
This commit is contained in:
parent
e6ba16f830
commit
aa5a602689
@ -33,28 +33,6 @@ config CONFIG_SED
|
||||
sed is used to perform text transformations on a file
|
||||
or input from a pipeline.
|
||||
|
||||
config CONFIG_FEATURE_SED_EMBEDED_NEWLINE
|
||||
bool " Embeded newline (EXPERIMENTAL)"
|
||||
default n
|
||||
depends on CONFIG_SED
|
||||
help
|
||||
This is a hack to allow matching of '\n' in regular expressions.
|
||||
It works by translating '\n' to "\n" and back.
|
||||
It may introduce unexpected results if you use "\n" in your text.
|
||||
|
||||
config CONFIG_FEATURE_SED_GNU_COMPATABILITY
|
||||
bool " Behave consistent with GNU sed"
|
||||
default y
|
||||
depends on CONFIG_SED
|
||||
help
|
||||
Where GNU sed doesnt follow the posix standard, do as GNU sed does.
|
||||
Current difference are in
|
||||
- N command with odd number of lines (see GNU sed info page)
|
||||
- Blanks before substitution flags eg.
|
||||
GNU sed interprets 's/a/b/ g' as 's/a/b/g'
|
||||
Standard says 's/a/b/ g' should be 's/a/b/;g'
|
||||
- GNU sed allows blanks between a '!' and the function.
|
||||
|
||||
config CONFIG_VI
|
||||
bool "vi"
|
||||
default n
|
||||
|
1474
editors/sed.c
1474
editors/sed.c
File diff suppressed because it is too large
Load Diff
@ -28,6 +28,7 @@
|
||||
#include <stdarg.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <regex.h>
|
||||
#include <termios.h>
|
||||
|
||||
#include <netdb.h>
|
||||
@ -468,5 +469,5 @@ extern void print_login_prompt(void);
|
||||
extern void vfork_daemon_rexec(int argc, char **argv, char *foreground_opt);
|
||||
extern void get_terminal_width_height(int fd, int *width, int *height);
|
||||
extern unsigned long get_ug_id(const char *s, long (*my_getxxnam)(const char *));
|
||||
|
||||
extern void xregcomp(regex_t *preg, const char *regex, int cflags);
|
||||
#endif /* __LIBCONFIG_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user