2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: variables.c /main/3 1995/11/01 15:57:22 rswiston $ */
24 /***************************************************************
26 * AT&T - PROPRIETARY *
28 * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF *
29 * AT&T BELL LABORATORIES *
30 * AND IS NOT TO BE DISCLOSED OR USED EXCEPT IN *
31 * ACCORDANCE WITH APPLICABLE AGREEMENTS *
33 * Copyright (c) 1993 AT&T Bell Laboratories *
34 * Unpublished & Not for Publication *
35 * All Rights Reserved *
37 * The copyright notice above does not evidence any *
38 * actual or intended publication of such source code *
40 * This software was created by the *
41 * Advanced Software Technology Department *
42 * AT&T Bell Laboratories *
44 * For further information contact *
45 * {ulysses,attmail}!dgk *
46 * dgk@ulysses.att.com *
47 * David Korn 908-582-7975 *
49 ***************************************************************/
51 /* : : generated by proto : : */
55 #if !defined(__PROTO__)
56 #if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
57 #if defined(__cplusplus)
58 #define __MANGLE__ "C"
63 #define __PROTO__(x) x
65 #define __PARAM__(n,o) n
66 #if !defined(__STDC__) && !defined(__cplusplus)
67 #if !defined(c_plusplus)
78 #define __PROTO__(x) ()
79 #define __OTORP__(x) x
80 #define __PARAM__(n,o) o
88 #if defined(__cplusplus) || defined(c_plusplus)
89 #define __VARARG__ ...
94 #if defined(__STDARG__)
95 #define __VA_START__(p,a) va_start(p,a)
97 #define __VA_START__(p,a) va_start(p)
102 #define mount _AST__mount
104 #include "FEATURE/options"
105 #include "FEATURE/dynamic"
115 * This is the list of built-in shell variables and default values
116 * and default attributes.
119 const struct shtable2 shtab_variables[] =
123 "PS2", NV_NOFREE, "> ",
124 "IFS", NV_NOFREE, " \t\n",
128 "REPLY", 0, (char*)0,
129 "SHELL", NV_NOFREE, "/bin/sh",
130 "EDITOR", 0, (char*)0,
131 "MAILCHECK", NV_NOFREE|NV_INTEGER, (char*)0,
132 "RANDOM", NV_NOFREE|NV_INTEGER, (char*)0,
134 "HISTFILE", 0, (char*)0,
135 "HISTSIZE", 0, (char*)0,
136 "HISTEDIT", NV_NOFREE, (char*)0,
137 "HISTCMD", NV_NOFREE|NV_INTEGER, (char*)0,
138 "FCEDIT", NV_NOFREE, "/bin/ed",
139 "CDPATH", 0, (char*)0,
140 "MAILPATH", 0, (char*)0,
141 "PS3", NV_NOFREE, "#? ",
142 "OLDPWD", 0, (char*)0,
143 "VISUAL", 0, (char*)0,
144 "COLUMNS", 0, (char*)0,
145 "LINES", 0, (char*)0,
146 "PPID", NV_NOFREE|NV_INTEGER, (char*)0,
147 "_", NV_EXPORT, (char*)0,
148 "TMOUT", NV_NOFREE|NV_INTEGER, (char*)0,
149 "SECONDS", NV_NOFREE|NV_INTEGER|NV_DOUBLE, (char*)0,
150 "LINENO", NV_NOFREE|NV_INTEGER, (char*)0,
151 "OPTARG", 0, (char*)0,
152 "OPTIND", NV_NOFREE|NV_INTEGER, (char*)0,
154 "FPATH", 0, (char*)0,
156 "LC_CTYPE", 0, (char*)0,
157 "FIGNORE", 0, (char*)0,
159 ".sh.edchar", 0, (char*)0,
160 ".sh.edcol", 0, (char*)0,
161 ".sh.edtext", 0, (char*)0,
162 ".sh.edmode", 0, (char*)0,
163 ".sh.name", 0, (char*)0,
164 ".sh.subscript",0, (char*)0,
165 ".sh.value", 0, (char*)0,
166 ".sh.version", NV_NOFREE, (char*)(&e_version[5]),
168 "VPATH", 0, (char*)0,
169 #endif /* SHOPT_FS_3D */
171 "DOSPATH", 0, (char*)0,
172 "VPIXDIR", 0, (char*)0,
173 #endif /* SHOPT_VPIX */
175 "CSWIDTH", 0, (char*)0,
176 #endif /* MULTIBYTE */
178 "SYSTYPE", 0, (char*)0,