search for: echocmd

Displaying 15 results from an estimated 15 matches for "echocmd".

Did you mean: echo_cmd
2005 May 19
3
[LLVMdev] [Cygwin] llvm 'make install' build errors
Reid, I think it is the first time it is run that the errors occcur !? Not sure but that would seem logical. Aaron
2012 Feb 20
1
readVECT6 and readRAST6 fails with R and GRASS 7 ???
...nt range only] {FALSE} name: e [Print extended metadata information only] {FALSE} name: h [Print raster history instead of info] {FALSE} name: verbose [Verbose module output] {FALSE} name: quiet [Quiet module output] {FALSE} Error in doGRASS(cmd, flags = flags, ..., parameters = parameters, echoCmd = echoCmd) : Invalid flag value: t ....so I tried running r.info which runs fine.... > system("r.info map=elevation.dem@PERMANENT") +----------------------------------------------------------------------------+ | Layer: elevation.dem@PERMANENT Date: Tue Mar 14 07:15:44...
2011 Mar 31
5
Exclude a resource from reports
A little while back I asked how to make puppet not report on a resource.. and was shown the loglevel metaparam: Quoting bellman@nsc.liu.se: There is a metaparameter called ''loglevel''. If you set that to something lower than "notice" (i.e. either "info" or "debug"), then Puppet won''t report that it applied the resource... So I made my
2019 Jan 25
0
[klibc:update-dash] builtin: Move echo space/nl handling into print_escape_str
...58733152e30f6 Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Sun, 25 Mar 2018 15:55:40 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Fri, 25 Jan 2019 02:57:21 +0000 [klibc] builtin: Move echo space/nl handling into print_escape_str Currently echocmd uses print_escape_str to do everything apart from printing the spaces/newlines separating its arguments. This patch moves the actual printing into print_escape_str as well using the format parameter. Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au> Signed-off-by: Ben Hutchings &lt...
2020 Mar 28
0
[klibc:update-dash] dash: builtin: Move echo space/nl handling into print_escape_str
....org.au> AuthorDate: Sun, 25 Mar 2018 15:55:40 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:54 +0000 [klibc] dash: builtin: Move echo space/nl handling into print_escape_str [ dash commit 325a460c7942aa79bb97303e129980db8afd177c ] Currently echocmd uses print_escape_str to do everything apart from printing the spaces/newlines separating its arguments. This patch moves the actual printing into print_escape_str as well using the format parameter. Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au> Signed-off-by: Ben Hutchings &lt...
2012 Feb 21
0
R-SIG-Debian Digest, Vol 78, Issue 3
...metadata information only] {FALSE} > > name: h [Print raster history instead of info] {FALSE} > > name: verbose [Verbose module output] {FALSE} > > name: quiet [Quiet module output] {FALSE} > > Error in doGRASS(cmd, flags = flags, ..., parameters = parameters, > echoCmd > > = echoCmd) : > > Invalid flag value: t > > > > ....so I tried running r.info which runs fine.... > > > >> system("r.info map=elevation.dem@PERMANENT") > > > +----------------------------------------------------------------------------...
2007 Aug 23
0
[git patch] klibc dash 0.5.4 update
hello hpa, please pull for the dash update git pull git://brane.itp.tuwien.ac.at/~mattems/klibc.git maks with this changes: Alexey Gladkov (1): Check return code for getgroups and fwrite Herbert Xu (17): Remove unnecessary truncation in _STPUTC Always call conv_escape_str in echocmd Fix \c spillage across echo commands Release 0.5.3. Make eval with empty arguments return 0 Fixed inverted char class matching Fixed command -v segmentation fault Fix mkbuiltin sort order Fix typo in comment Remove unnecessary inclusion of redir.h...
2019 Jan 25
0
[klibc:update-dash] [BUILTIN] Simplify echo command
...----------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/usr/dash/bltin/printf.c b/usr/dash/bltin/printf.c index 0e150d36..d4ae794d 100644 --- a/usr/dash/bltin/printf.c +++ b/usr/dash/bltin/printf.c @@ -448,33 +448,21 @@ check_conversion(const char *s, const char *ep) int echocmd(int argc, char **argv) { - int nonl = 0; - struct output *outs = out1; - - if (!*++argv) - goto end; - if (equal(*argv, "-n")) { - nonl = ~nonl; - if (!*++argv) - goto end; - } + int nonl; + + nonl = *++argv ? equal(*argv, "-n") : 0; + argv += nonl; do { int c; -...
2019 Jan 25
0
[klibc:update-dash] builtin: Fix echo -n early termination
...utchings <ben at decadent.org.uk> --- usr/dash/bltin/printf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/dash/bltin/printf.c b/usr/dash/bltin/printf.c index 78bf388a..9da4ffef 100644 --- a/usr/dash/bltin/printf.c +++ b/usr/dash/bltin/printf.c @@ -465,7 +465,7 @@ echocmd(int argc, char **argv) if (likely(*argv)) nonl += print_escape_str("%s", NULL, NULL, *argv++); - if (nonl > 0) + if (likely((nonl + !*argv) > 1)) break; c = *argv ? ' ' : '\n';
2020 Mar 28
0
[klibc:update-dash] dash: [BUILTIN] Simplify echo command
...----------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/usr/dash/bltin/printf.c b/usr/dash/bltin/printf.c index 0e150d36..d4ae794d 100644 --- a/usr/dash/bltin/printf.c +++ b/usr/dash/bltin/printf.c @@ -448,33 +448,21 @@ check_conversion(const char *s, const char *ep) int echocmd(int argc, char **argv) { - int nonl = 0; - struct output *outs = out1; - - if (!*++argv) - goto end; - if (equal(*argv, "-n")) { - nonl = ~nonl; - if (!*++argv) - goto end; - } + int nonl; + + nonl = *++argv ? equal(*argv, "-n") : 0; + argv += nonl; do { int c; -...
2020 Mar 28
0
[klibc:update-dash] dash: builtin: Fix echo -n early termination
...utchings <ben at decadent.org.uk> --- usr/dash/bltin/printf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/dash/bltin/printf.c b/usr/dash/bltin/printf.c index 78bf388a..9da4ffef 100644 --- a/usr/dash/bltin/printf.c +++ b/usr/dash/bltin/printf.c @@ -465,7 +465,7 @@ echocmd(int argc, char **argv) if (likely(*argv)) nonl += print_escape_str("%s", NULL, NULL, *argv++); - if (nonl > 0) + if (likely((nonl + !*argv) > 1)) break; c = *argv ? ' ' : '\n';
2012 Oct 05
0
2.0.2 klibc release
...[klibc] [SHELL] Allow building without LINEO support H. Peter Anvin (1): [klibc] 2.0.1 released, next version is 2.0.2 Harald van Dijk (1): [klibc] [ARITH] Avoid imaxdiv when only one of the results is wanted Herbert Xu (3): [klibc] [BUILTIN] Eliminate unnecessary promotion in echocmd [klibc] [BUILTIN] Merge SKIPFUNC/SKIPFILE and only clear SKIPFUNC when leaving dotcmd [klibc] [VAR] Sanitise environment variable names on entry Jim Meyering (4): [klibc] [MEMALLOC] Avoid gcc warning: variable 'oldstackp' set but not used [klibc] [MEMALLOC] Avoid cl...
2011 Feb 15
8
Trigger an event after a puppet run
Hi, We''d like to run puppet regularly in noop then trigger an event after the run depending on the results, namely to hook puppet in to our Nagios implementation so that if anything changes for any reason we receive an alert. We already have puppet configured to send out puppet reports via email but don''t want to completely rely on that. Is it possible to craft a trigger of
2019 Jan 25
0
[klibc:update-dash] [BUILTIN] Handle embedded NULs correctly in printf
...ntinue; } @@ -272,7 +315,9 @@ conv_escape_str(char *str) /* Finally test for sequences valid in the format string */ str = conv_escape(str - 1, &c); ch = c; - } while (STPUTC(ch, cp), (char)ch); + } while (STPUTC(c, cp), (char)ch); + + *sp = cp; return ch; } @@ -462,8 +507,7 @@ echocmd(int argc, char **argv) do { int c; - nonl += conv_escape_str(*argv); - outstr(stackblock(), outs); + nonl += print_escape_str("%s", NULL, NULL, *argv); if (nonl > 0) break; diff --git a/usr/dash/output.c b/usr/dash/output.c index f62e7eab..1b20850a 100644 --- a/usr/d...
2020 Mar 28
0
[klibc:update-dash] dash: [BUILTIN] Handle embedded NULs correctly in printf
...ntinue; } @@ -272,7 +315,9 @@ conv_escape_str(char *str) /* Finally test for sequences valid in the format string */ str = conv_escape(str - 1, &c); ch = c; - } while (STPUTC(ch, cp), (char)ch); + } while (STPUTC(c, cp), (char)ch); + + *sp = cp; return ch; } @@ -462,8 +507,7 @@ echocmd(int argc, char **argv) do { int c; - nonl += conv_escape_str(*argv); - outstr(stackblock(), outs); + nonl += print_escape_str("%s", NULL, NULL, *argv); if (nonl > 0) break; diff --git a/usr/dash/output.c b/usr/dash/output.c index bb7c6ada..6618cc33 100644 --- a/usr/d...