Displaying 9 results from an estimated 9 matches for "typecmd".
Did you mean:
typecmds
2020 Mar 28
0
[klibc:update-dash] dash: builtin: Mark more regular built-ins
...-as export -as readonly
falsecmd -u false
getoptscmd -u getopts
-hashcmd hash
+hashcmd -u hash
jobscmd -u jobs
localcmd -as local
printfcmd printf
-pwdcmd pwd
+pwdcmd -u pwd
readcmd -u read
returncmd -s return
setcmd -s set
shiftcmd -s shift
trapcmd -s trap
truecmd -s : -u true
-typecmd type
+typecmd -u type
umaskcmd -u umask
unaliascmd -u unalias
unsetcmd -s unset
waitcmd -u wait
aliascmd -au alias
#ifdef HAVE_GETRLIMIT
-ulimitcmd ulimit
+ulimitcmd -u ulimit
#endif
testcmd test [
killcmd -u kill
2019 Jan 25
0
[klibc:update-dash] [BUILTIN] Small optimisation of command -pv change
...au>
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/exec.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/usr/dash/exec.c b/usr/dash/exec.c
index e56e3f67..ec0eadd8 100644
--- a/usr/dash/exec.c
+++ b/usr/dash/exec.c
@@ -727,7 +727,7 @@ typecmd(int argc, char **argv)
int err = 0;
for (i = 1; i < argc; i++) {
- err |= describe_command(out1, argv[i], pathval(), 1);
+ err |= describe_command(out1, argv[i], NULL, 1);
}
return err;
}
@@ -743,6 +743,8 @@ describe_command(out, command, path, verbose)
struct tblentry *cmdp;
co...
2020 Mar 28
0
[klibc:update-dash] dash: [BUILTIN] Small optimisation of command -pv change
...au>
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/exec.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/usr/dash/exec.c b/usr/dash/exec.c
index e56e3f67..ec0eadd8 100644
--- a/usr/dash/exec.c
+++ b/usr/dash/exec.c
@@ -727,7 +727,7 @@ typecmd(int argc, char **argv)
int err = 0;
for (i = 1; i < argc; i++) {
- err |= describe_command(out1, argv[i], pathval(), 1);
+ err |= describe_command(out1, argv[i], NULL, 1);
}
return err;
}
@@ -743,6 +743,8 @@ describe_command(out, command, path, verbose)
struct tblentry *cmdp;
co...
2004 Nov 13
0
[minor patch] ash `type' builtin
...printf
(ie there's no " is " in between the command and
the filename. This patch fixed the problem.
/mjt
exec.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
--- ash/exec.c.orig Thu Sep 16 01:36:58 2004
+++ ash/exec.c Sat Nov 13 02:22:02 2004
@@ -1031,8 +1031,10 @@ typecmd(int argc, char **argv)
if (!v_flag)
out1fmt(" is%s ",
cmdp ? " a tracked alias for" : "");
-#endif
out1fmt("%s\n", name);
+#else
+ out1fmt(" is %s\n", name);
+#endif
} else {
if (access(arg, X_OK) == 0) {...
2019 Jan 25
0
[klibc:update-dash] [BUILTIN] command: allow combining -p with -v
...truct tblentry *cmdlookup(const char *, int);
STATIC void delete_cmd_entry(void);
STATIC void addcmdentry(char *, struct cmdentry *);
-STATIC int describe_command(struct output *, char *, int);
+STATIC int describe_command(struct output *, char *, const char *, int);
/*
@@ -727,21 +727,21 @@ typecmd(int argc, char **argv)
int err = 0;
for (i = 1; i < argc; i++) {
- err |= describe_command(out1, argv[i], 1);
+ err |= describe_command(out1, argv[i], pathval(), 1);
}
return err;
}
STATIC int
-describe_command(out, command, verbose)
+describe_command(out, command, path, verbose)...
2020 Mar 28
0
[klibc:update-dash] dash: [BUILTIN] command: allow combining -p with -v
...truct tblentry *cmdlookup(const char *, int);
STATIC void delete_cmd_entry(void);
STATIC void addcmdentry(char *, struct cmdentry *);
-STATIC int describe_command(struct output *, char *, int);
+STATIC int describe_command(struct output *, char *, const char *, int);
/*
@@ -727,21 +727,21 @@ typecmd(int argc, char **argv)
int err = 0;
for (i = 1; i < argc; i++) {
- err |= describe_command(out1, argv[i], 1);
+ err |= describe_command(out1, argv[i], pathval(), 1);
}
return err;
}
STATIC int
-describe_command(out, command, verbose)
+describe_command(out, command, path, verbose)...
2020 Mar 28
0
[klibc:update-dash] dash: exec: Stricter pathopt parsing
...char *);
+int padvance_magic(const char **path, const char *name, int magic);
int hashcmd(int, char **);
void find_command(char *, struct cmdentry *, int, const char *);
struct builtincmd *find_builtin(const char *);
@@ -75,3 +75,8 @@ void defun(union node *);
void unsetfunc(const char *);
int typecmd(int, char **);
int commandcmd(int, char **);
+
+static inline int padvance(const char **path, const char *name)
+{
+ return padvance_magic(path, name, 1);
+}
diff --git a/usr/dash/mail.c b/usr/dash/mail.c
index 7f9e49de..8eacb2d0 100644
--- a/usr/dash/mail.c
+++ b/usr/dash/mail.c
@@ -79,7 +79,7 @@...
2015 Sep 03
2
Fuzzing complex programs
On Thu, Sep 3, 2015 at 6:45 PM, Kostya Serebryany <kcc at google.com> wrote:
> Did you build the Postgres code with -fsanitize-coverage=... ?
Yes:
CC = clang
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels
-Wmissing-format-attribute -Wformat-security -fno-strict-aliasing
-fwrapv -Wno-unused-command-line-argument -g -O0 -fsanitize=address
2015 Sep 03
2
Fuzzing complex programs
...mmands/operatorcmds.o commands/opclasscmds.o
> commands/policy.o commands/portalcmds.o commands/prepare.o
> commands/proclang.o commands/schemacmds.o commands/seclabel.o
> commands/sequence.o commands/tablecmds.o commands/tablespace.o
> commands/trigger.o commands/tsearchcmds.o commands/typecmds.o
> commands/user.o commands/vacuum.o commands/vacuumlazy.o
> commands/variable.o commands/view.o executor/execAmi.o
> executor/execCurrent.o executor/execGrouping.o executor/execIndexing.o
> executor/execJunk.o executor/execMain.o executor/execProcnode.o
> executor/execQual.o execu...