summaryrefslogtreecommitdiffhomepage
path: root/src/exec.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/exec.h')
-rw-r--r--src/exec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/exec.h b/src/exec.h
index 54f5b3e..432a32c 100644
--- a/src/exec.h
+++ b/src/exec.h
@@ -62,6 +62,7 @@ void exec_init(void);
enum {
BI_SPECIAL = 1u << 0, /**< POSIX special builtin */
BI_PURE = 1u << 1,
+ BI_CD = 1u << 2, /**< changes directory state; see builtin_cd_isolated() */
};
/**
@@ -109,6 +110,7 @@ enum {
};
void find_command(const char *name, cmdinfo *ci, unsigned flags);
+bool builtin_cd_isolated(int argc, char **argv, int *status);
void func_define(const char *name, node *body, arena *owner);
bool func_unset(const char *name);
void func_each(void (*fn)(const char *name, void *arg), void *arg);