Displaying 4 results from an estimated 4 matches for "verify_verbose".
2019 Jan 25
0
[klibc:update-dash] [BUILTIN] Small optimisation of command -pv change
...[i], NULL, 1);
}
return err;
}
@@ -743,6 +743,8 @@ describe_command(out, command, path, verbose)
struct tblentry *cmdp;
const struct alias *ap;
+ path = path ?: pathval();
+
if (verbose) {
outstr(command, out);
}
@@ -840,19 +842,19 @@ commandcmd(argc, argv)
VERIFY_BRIEF = 1,
VERIFY_VERBOSE = 2,
} verify = 0;
- const char *path = pathval();
+ const char *path = NULL;
while ((c = nextopt("pvV")) != '\0')
if (c == 'V')
verify |= VERIFY_VERBOSE;
else if (c == 'v')
verify |= VERIFY_BRIEF;
- else if (c == 'p')
- path = defpat...
2020 Mar 28
0
[klibc:update-dash] dash: [BUILTIN] Small optimisation of command -pv change
...[i], NULL, 1);
}
return err;
}
@@ -743,6 +743,8 @@ describe_command(out, command, path, verbose)
struct tblentry *cmdp;
const struct alias *ap;
+ path = path ?: pathval();
+
if (verbose) {
outstr(command, out);
}
@@ -840,19 +842,19 @@ commandcmd(argc, argv)
VERIFY_BRIEF = 1,
VERIFY_VERBOSE = 2,
} verify = 0;
- const char *path = pathval();
+ const char *path = NULL;
while ((c = nextopt("pvV")) != '\0')
if (c == 'V')
verify |= VERIFY_VERBOSE;
else if (c == 'v')
verify |= VERIFY_BRIEF;
- else if (c == 'p')
- path = defpat...
2019 Jan 25
0
[klibc:update-dash] [BUILTIN] command: allow combining -p with -v
...)
struct output *out;
char *command;
+ const char *path;
int verbose;
{
struct cmdentry entry;
struct tblentry *cmdp;
const struct alias *ap;
- const char *path = pathval();
if (verbose) {
outstr(command, out);
@@ -840,20 +840,23 @@ commandcmd(argc, argv)
VERIFY_BRIEF = 1,
VERIFY_VERBOSE = 2,
} verify = 0;
+ const char *path = pathval();
while ((c = nextopt("pvV")) != '\0')
if (c == 'V')
verify |= VERIFY_VERBOSE;
else if (c == 'v')
verify |= VERIFY_BRIEF;
+ else if (c == 'p')
+ path = defpath;
#ifdef DEBUG
- else if...
2020 Mar 28
0
[klibc:update-dash] dash: [BUILTIN] command: allow combining -p with -v
...)
struct output *out;
char *command;
+ const char *path;
int verbose;
{
struct cmdentry entry;
struct tblentry *cmdp;
const struct alias *ap;
- const char *path = pathval();
if (verbose) {
outstr(command, out);
@@ -840,20 +840,23 @@ commandcmd(argc, argv)
VERIFY_BRIEF = 1,
VERIFY_VERBOSE = 2,
} verify = 0;
+ const char *path = pathval();
while ((c = nextopt("pvV")) != '\0')
if (c == 'V')
verify |= VERIFY_VERBOSE;
else if (c == 'v')
verify |= VERIFY_BRIEF;
+ else if (c == 'p')
+ path = defpath;
#ifdef DEBUG
- else if...