summaryrefslogtreecommitdiffstats
path: root/bin/sh/options.h
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-07-25 10:57:39 +0000
committertjr <tjr@FreeBSD.org>2002-07-25 10:57:39 +0000
commit43d6a146780d20450b3264783f6ddfba83217282 (patch)
tree133c1df05e4ec1eddcc3640d2f65f9eef939e399 /bin/sh/options.h
parentca8e9f2edf22b507593fe9c0b5a2b8f9fad7d37e (diff)
downloadFreeBSD-src-43d6a146780d20450b3264783f6ddfba83217282.zip
FreeBSD-src-43d6a146780d20450b3264783f6ddfba83217282.tar.gz
Add a -P/-o physical option which behaves similarly to bash/ksh's options
by the same name. This option makes the cd and pwd builtins behave physically (as opposed to logically) by default. Submitted by: fanf
Diffstat (limited to 'bin/sh/options.h')
-rw-r--r--bin/sh/options.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/sh/options.h b/bin/sh/options.h
index 016a936..5aec64e 100644
--- a/bin/sh/options.h
+++ b/bin/sh/options.h
@@ -65,8 +65,9 @@ struct shparam {
#define uflag optlist[14].val
#define privileged optlist[15].val
#define Tflag optlist[16].val
+#define Pflag optlist[17].val
-#define NOPTS 17
+#define NOPTS 18
struct optent {
const char *name;
@@ -93,6 +94,7 @@ struct optent optlist[NOPTS] = {
{ "nounset", 'u', 0 },
{ "privileged", 'p', 0 },
{ "trapsasync", 'T', 0 },
+ { "physical", 'P', 0 },
};
#else
extern struct optent optlist[NOPTS];
OpenPOWER on IntegriCloud