diff options
author | Jilles Tjoelker <jilles@FreeBSD.org> | 2010-03-06 16:57:53 +0000 |
---|---|---|
committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2010-03-06 16:57:53 +0000 |
commit | c848bc18e8d3de0c74834f0980f57b141aa9b989 (patch) | |
tree | a292cee82566850ab924f6b484d9ac29b205226d /bin/sh/exec.h | |
parent | 44d68185d1bb80945c24e1f87e67d223c56f92bc (diff) | |
download | src-c848bc18e8d3de0c74834f0980f57b141aa9b989.tar.gz src-c848bc18e8d3de0c74834f0980f57b141aa9b989.zip |
sh: Improve the command builtin:
* avoid unnecessary fork
* allow executing builtins via command
* executing a special builtin via command removes its special properties
Obtained from: NetBSD (parts)
Notes
Notes:
svn path=/head/; revision=204800
Diffstat (limited to 'bin/sh/exec.h')
-rw-r--r-- | bin/sh/exec.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/sh/exec.h b/bin/sh/exec.h index 32bf13168342..45330a16ad6c 100644 --- a/bin/sh/exec.h +++ b/bin/sh/exec.h @@ -57,6 +57,10 @@ struct cmdentry { }; +/* action to find_command() */ +#define DO_ERR 0x01 /* prints errors */ +#define DO_NOFUNC 0x02 /* don't return shell functions, for command */ + extern const char *pathopt; /* set by padvance */ extern int exerrno; /* last exec error */ |