summaryrefslogtreecommitdiffstats
path: root/bin/sh/options.h
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1996-10-29 03:12:51 +0000
committersteve <steve@FreeBSD.org>1996-10-29 03:12:51 +0000
commitac82f35222ffb550ce85912f86498957f59ce50b (patch)
tree97cdea4e237b2b62bb4b43b1b77a859e45b517fc /bin/sh/options.h
parent6a0fb85f4754bfc12c9e49202548159489701554 (diff)
downloadFreeBSD-src-ac82f35222ffb550ce85912f86498957f59ce50b.zip
FreeBSD-src-ac82f35222ffb550ce85912f86498957f59ce50b.tar.gz
Add the -p (privileged) commandline switch
found in bash, zsh, and friends. Reviewed by: joerg
Diffstat (limited to 'bin/sh/options.h')
-rw-r--r--bin/sh/options.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/sh/options.h b/bin/sh/options.h
index 33131d3..140c926 100644
--- a/bin/sh/options.h
+++ b/bin/sh/options.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)options.h 8.2 (Berkeley) 5/4/95
- * $Id: options.h,v 1.2 1994/09/24 02:58:05 davidg Exp $
+ * $Id: options.h,v 1.3 1996/09/01 10:21:20 peter Exp $
*/
struct shparam {
@@ -62,8 +62,9 @@ struct shparam {
#define aflag optlist[12].val
#define bflag optlist[13].val
#define uflag optlist[14].val
+#define privileged optlist[15].val
-#define NOPTS 15
+#define NOPTS 16
struct optent {
const char *name;
@@ -88,6 +89,7 @@ struct optent optlist[NOPTS] = {
{ "allexport", 'a', 0 },
{ "notify", 'b', 0 },
{ "nounset", 'u', 0 },
+ { "privileged", 'p', 0 },
};
#else
extern struct optent optlist[NOPTS];
OpenPOWER on IntegriCloud