Displaying 2 results from an estimated 2 matches for "lastfmt".
Did you mean:
lastfm
2019 Jan 25
0
[klibc:update-dash] builtin: Move echo space/nl handling into print_escape_str
...*array, char *s)
len = q - p;
total = len - 1;
+ q[-1] = (!!((f[1] - 's') | done) - 1) & f[2];
+ total += !!q[-1];
if (f[1] == 's')
goto easy;
@@ -461,21 +463,22 @@ check_conversion(const char *s, const char *ep)
int
echocmd(int argc, char **argv)
{
+ const char *lastfmt = snlfmt;
int nonl;
- nonl = *++argv ? equal(*argv, "-n") : 0;
- argv += nonl;
+ if (*++argv && equal(*argv, "-n")) {
+ argv++;
+ lastfmt = "%s";
+ }
do {
- int c;
+ const char *fmt = "%s ";
+ char *s = *argv;
- if (likely(*argv))
-...
2020 Mar 28
0
[klibc:update-dash] dash: builtin: Move echo space/nl handling into print_escape_str
...*array, char *s)
len = q - p;
total = len - 1;
+ q[-1] = (!!((f[1] - 's') | done) - 1) & f[2];
+ total += !!q[-1];
if (f[1] == 's')
goto easy;
@@ -461,21 +463,22 @@ check_conversion(const char *s, const char *ep)
int
echocmd(int argc, char **argv)
{
+ const char *lastfmt = snlfmt;
int nonl;
- nonl = *++argv ? equal(*argv, "-n") : 0;
- argv += nonl;
+ if (*++argv && equal(*argv, "-n")) {
+ argv++;
+ lastfmt = "%s";
+ }
do {
- int c;
+ const char *fmt = "%s ";
+ char *s = *argv;
- if (likely(*argv))
-...