search for: expari

Displaying 6 results from an estimated 6 matches for "expari".

2020 Mar 28
0
[klibc:update-dash] dash: expand: Do not reprocess data when expanding words
...Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:55 +0000 [klibc] dash: expand: Do not reprocess data when expanding words [ dash commit 3cd538634f71538370f5af239f342aec48b7470b ] Currently various paths will reprocess data when performing word expansion. For example, expari will skip backwards looking for the start of the arithmetic expansion, while evalvar will skip unexpanded words manually. This is cumbersome and error-prone. This patch fixes this by making word expansions proceed in a linear fashion. This means changing argstr and the various expansion function...
2020 Mar 28
0
[klibc:update-dash] dash: expand: Ensure result is escaped in cvtnum
...ben at decadent.org.uk> --- usr/dash/expand.c | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/usr/dash/expand.c b/usr/dash/expand.c index c3d67fc3..411381bd 100644 --- a/usr/dash/expand.c +++ b/usr/dash/expand.c @@ -116,7 +116,7 @@ static char *expari(char *start, int flag); STATIC void expbackq(union node *, int); STATIC char *evalvar(char *, int); static size_t strtodest(const char *p, int flags); -static void memtodest(const char *p, size_t len, int flags); +static size_t memtodest(const char *p, size_t len, int flags); STATIC ssize_t var...
2010 Mar 22
1
[git pull] dash, sh4, README's
...move setvarsafe [klibc] [BUILTIN] Use intmax_t arithmetic in test [klibc] [PARSER] Report substition errors at expansion time [klibc] [ARITH] Add assignment and intmax_t support [klibc] [ARITH] Size optimisations in arithmetic lexer [klibc] [EXPAND] Add likely flags in expari [klibc] [BUILTIN] Use setvarint to set OPTIND [klibc] [EXEC] Fixed execing of scripts with no hash-bang [klibc] [SHELL] Replace shared illnum message by badnum function. [klibc] [EXPAND] Added configure --enable-glob and --enable-fnmatch options [klibc] [PARSER] Fix he...
2010 Apr 16
0
[git pull v4] dash, sh4, ipconfig, dprintf, fstype, README's
...move setvarsafe [klibc] [BUILTIN] Use intmax_t arithmetic in test [klibc] [PARSER] Report substition errors at expansion time [klibc] [ARITH] Add assignment and intmax_t support [klibc] [ARITH] Size optimisations in arithmetic lexer [klibc] [EXPAND] Add likely flags in expari [klibc] [BUILTIN] Use setvarint to set OPTIND [klibc] [EXEC] Fixed execing of scripts with no hash-bang [klibc] [SHELL] Replace shared illnum message by badnum function. [klibc] [EXPAND] Added configure --enable-glob and --enable-fnmatch options [klibc] [PARSER] Fix he...
2010 Apr 16
0
[PATCH] pull faccessat() system call
...move setvarsafe [klibc] [BUILTIN] Use intmax_t arithmetic in test [klibc] [PARSER] Report substition errors at expansion time [klibc] [ARITH] Add assignment and intmax_t support [klibc] [ARITH] Size optimisations in arithmetic lexer [klibc] [EXPAND] Add likely flags in expari [klibc] [BUILTIN] Use setvarint to set OPTIND [klibc] [EXEC] Fixed execing of scripts with no hash-bang [klibc] [SHELL] Replace shared illnum message by badnum function. [klibc] [EXPAND] Added configure --enable-glob and --enable-fnmatch options [klibc] [PARSER] Fix he...
2010 Mar 28
1
[git pull v3] dash, sh4, ipconfig, dprintf, fstype, README's
...move setvarsafe [klibc] [BUILTIN] Use intmax_t arithmetic in test [klibc] [PARSER] Report substition errors at expansion time [klibc] [ARITH] Add assignment and intmax_t support [klibc] [ARITH] Size optimisations in arithmetic lexer [klibc] [EXPAND] Add likely flags in expari [klibc] [BUILTIN] Use setvarint to set OPTIND [klibc] [EXEC] Fixed execing of scripts with no hash-bang [klibc] [SHELL] Replace shared illnum message by badnum function. [klibc] [EXPAND] Added configure --enable-glob and --enable-fnmatch options [klibc] [PARSER] Fix he...