xref: /openbsd-src/bin/csh/const.c (revision df930be708d50e9715f173caa26ffe1b7599b157)
1 /*	$NetBSD: const.c,v 1.6 1995/03/21 09:02:31 cgd Exp $	*/
2 
3 /*-
4  * Copyright (c) 1991, 1993
5  *	The Regents of the University of California.  All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  * 1. Redistributions of source code must retain the above copyright
11  *    notice, this list of conditions and the following disclaimer.
12  * 2. Redistributions in binary form must reproduce the above copyright
13  *    notice, this list of conditions and the following disclaimer in the
14  *    documentation and/or other materials provided with the distribution.
15  * 3. All advertising materials mentioning features or use of this software
16  *    must display the following acknowledgement:
17  *	This product includes software developed by the University of
18  *	California, Berkeley and its contributors.
19  * 4. Neither the name of the University nor the names of its contributors
20  *    may be used to endorse or promote products derived from this software
21  *    without specific prior written permission.
22  *
23  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33  * SUCH DAMAGE.
34  */
35 
36 #ifndef lint
37 #if 0
38 static char sccsid[] = "@(#)const.c	8.1 (Berkeley) 5/31/93";
39 #else
40 static char rcsid[] = "$NetBSD: const.c,v 1.6 1995/03/21 09:02:31 cgd Exp $";
41 #endif
42 #endif /* not lint */
43 
44 /*
45  * tc.const.c: String constants for csh.
46  */
47 
48 #include "csh.h"
49 
50 Char STR0[]             = { '0', '\0' };
51 Char STR1[]             = { '1', '\0' };
52 Char STRHOME[]		= { 'H', 'O', 'M', 'E', '\0' };
53 Char STRLANG[]  	= { 'L', 'A', 'N', 'G', '\0' };
54 Char STRLC_CTYPE[]	= { 'L', 'C', '_', 'C', 'T', 'Y', 'P', 'E' ,'\0' };
55 Char STRLOGNAME[]	= { 'L', 'O', 'G', 'N', 'A', 'M', 'E', '\0' };
56 Char STRLbrace[]	= { '{', '\0' };
57 Char STRLparen[]	= { '(', '\0' };
58 Char STRLparensp[]	= { '(', ' ', '\0' };
59 Char STRNULL[]          = { '\0' };
60 Char STRPATH[] 		= { 'P', 'A', 'T', 'H', '\0' };
61 Char STRPWD[]		= { 'P', 'W', 'D', '\0' };
62 Char STRQNULL[]		= { '\0' | QUOTE, '\0' };
63 Char STRRbrace[]	= { '}', '\0' };
64 Char STRspRparen[]	= { ' ', ')', '\0' };
65 Char STRTERM[]		= { 'T', 'E', 'R', 'M', '\0' };
66 Char STRUSER[]		= { 'U', 'S', 'E', 'R', '\0' };
67 Char STRalias[]         = { 'a', 'l', 'i', 'a', 's', '\0' };
68 Char STRand[]		= { '&', '\0' };
69 Char STRand2[]		= { '&', '&', '\0' };
70 Char STRaout[]          = { 'a', '.', 'o', 'u', 't', '\0' };
71 Char STRargv[]          = { 'a', 'r', 'g', 'v', '\0' };
72 Char STRbang[]		= { '!', '\0' };
73 Char STRcaret[]		= { '^', '\0' };
74 Char STRcdpath[]	= { 'c', 'd', 'p', 'a', 't', 'h', '\0' };
75 Char STRcent2[] 	= { '%', '%', '\0' };
76 Char STRcenthash[] 	= { '%', '#', '\0' };
77 Char STRcentplus[] 	= { '%', '+', '\0' };
78 Char STRcentminus[] 	= { '%', '-', '\0' };
79 Char STRchase_symlinks[] = { 'c', 'h', 'a', 's', 'e', '_', 's', 'y', 'm', 'l',
80 			    'i', 'n', 'k', 's', '\0' };
81 Char STRchild[]		= { 'c', 'h', 'i', 'l', 'd', '\0' };
82 Char STRcolon[]		= { ':', '\0' };
83 Char STRcwd[]           = { 'c', 'w', 'd', '\0' };
84 Char STRdefault[]	= { 'd', 'e', 'f', 'a', 'u', 'l', 't', '\0' };
85 Char STRdot[]           = { '.', '\0' };
86 Char STRdotdotsl[]	= { '.', '.', '/', '\0' };
87 Char STRdotsl[]		= { '.', '/', '\0' };
88 Char STRecho[]          = { 'e', 'c', 'h', 'o', '\0' };
89 Char STRequal[]		= { '=', '\0' };
90 Char STRfakecom[]	= { '{', ' ', '.', '.', '.', ' ', '}', '\0' };
91 Char STRfakecom1[]	= { '`', ' ', '.', '.', '.', ' ', '`', '\0' };
92 Char STRfignore[]	= { 'f', 'i', 'g', 'n', 'o', 'r', 'e', '\0' };
93 #ifdef FILEC
94 Char STRfilec[] = { 'f', 'i', 'l', 'e', 'c', '\0' };
95 #endif /* FILEC */
96 Char STRhistchars[]	= { 'h', 'i', 's', 't', 'c', 'h', 'a', 'r', 's', '\0' };
97 Char STRtildothist[]    = { '~', '/', '.', 'h', 'i', 's', 't', 'o', 'r',
98 		            'y', '\0' };
99 Char STRhistfile[]	= { 'h', 'i', 's', 't', 'f', 'i', 'l', 'e', '\0' };
100 Char STRhistory[] 	= { 'h', 'i', 's', 't', 'o', 'r', 'y', '\0' };
101 Char STRhome[]          = { 'h', 'o', 'm', 'e', '\0' };
102 Char STRignore_symlinks[] = { 'i', 'g', 'n', 'o', 'r', 'e', '_', 's', 'y', 'm',
103 			    'l', 'i', 'n', 'k', 's', '\0' };
104 Char STRignoreeof[]	= { 'i', 'g', 'n', 'o', 'r', 'e', 'e', 'o', 'f', '\0' };
105 Char STRjobs[]          = { 'j', 'o', 'b', 's', '\0' };
106 Char STRlistjobs[]	= { 'l', 'i', 's', 't', 'j', 'o', 'b', 's', '\0' };
107 Char STRlogout[]        = { 'l', 'o', 'g', 'o', 'u', 't', '\0' };
108 Char STRlong[]		= { 'l', 'o', 'n', 'g', '\0' };
109 Char STRmail[]		= { 'm', 'a', 'i', 'l', '\0' };
110 Char STRmh[]            = { '-', 'h', '\0' };
111 Char STRminus[]		= { '-', '\0' };
112 Char STRml[]		= { '-', 'l', '\0' };
113 Char STRmn[]		= { '-', 'n', '\0' };
114 Char STRmquestion[]     = { '?' | QUOTE, ' ', '\0' };
115 Char STRnice[]		= { 'n', 'i', 'c', 'e', '\0' };
116 Char STRnoambiguous[]	= { 'n', 'o', 'a', 'm', 'b', 'i', 'g', 'u', 'o', 'u',
117 			    's', '\0' };
118 Char STRnobeep[]	= { 'n', 'o', 'b', 'e', 'e', 'p', '\0' };
119 Char STRnoclobber[]	= { 'n', 'o', 'c', 'l', 'o', 'b', 'b', 'e', 'r', '\0' };
120 Char STRnoglob[]	= { 'n', 'o', 'g', 'l', 'o', 'b', '\0' };
121 Char STRnohup[]		= { 'n', 'o', 'h', 'u', 'p', '\0' };
122 Char STRnonomatch[]	= { 'n', 'o', 'n', 'o', 'm', 'a', 't', 'c', 'h', '\0' };
123 Char STRnormal[]        = { 'n', 'o', 'r', 'm', 'a', 'l', '\0' };
124 Char STRnotify[]	= { 'n', 'o', 't', 'i', 'f', 'y', '\0' };
125 Char STRor[]		= { '|', '\0' };
126 Char STRor2[]		= { '|', '|', '\0' };
127 Char STRpath[]          = { 'p', 'a', 't', 'h', '\0' };
128 Char STRprintexitvalue[] = { 'p', 'r', 'i', 'n', 't', 'e', 'x', 'i', 't', 'v',
129 			    'a', 'l', 'u', 'e', '\0' };
130 Char STRprompt[]        = { 'p', 'r', 'o', 'm', 'p', 't', '\0' };
131 Char STRprompt2[]       = { 'p', 'r', 'o', 'm', 'p', 't', '2', '\0' };
132 Char STRpushdsilent[]	= { 'p', 'u', 's', 'h', 'd', 's', 'i', 'l', 'e', 'n',
133 			    't', '\0' };
134 Char STRret[]		= { '\n', '\0' };
135 Char STRsavehist[]      = { 's', 'a', 'v', 'e', 'h', 'i', 's', 't', '\0' };
136 Char STRsemisp[]	= { ';', ' ', '\0' };
137 Char STRshell[]         = { 's', 'h', 'e', 'l', 'l', '\0' };
138 Char STRslash[]		= { '/', '\0' };
139 Char STRsldotcshrc[]	= { '/', '.', 'c', 's', 'h', 'r', 'c', '\0' };
140 Char STRsldotlogin[]	= { '/', '.', 'l', 'o', 'g', 'i', 'n', '\0' };
141 Char STRsldthist[]      = { '/', '.', 'h', 'i', 's', 't', 'o', 'r', 'y', '\0' };
142 Char STRsldtlogout[]    = { '/', '.', 'l', 'o', 'g', 'o', 'u', 't', '\0' };
143 Char STRsource[]        = { 's', 'o', 'u', 'r', 'c', 'e', '\0' };
144 Char STRsp3dots[]	= { ' ', '.', '.', '.', '\0' };
145 Char STRspLarrow2sp[]	= { ' ', '<', '<', ' ', '\0' };
146 Char STRspLarrowsp[]	= { ' ', '<', ' ', '\0' };
147 Char STRspRarrow[]	= { ' ', '>', '\0' };
148 Char STRspRarrow2[]	= { ' ', '>', '>', '\0' };
149 Char STRRparen[]	= { ')', '\0' };
150 Char STRspace[]		= { ' ', '\0' };
151 Char STRspand2sp[]	= { ' ', '&', '&', ' ', '\0' };
152 Char STRspor2sp[]	= { ' ', '|', '|', ' ', '\0' };
153 Char STRsporsp[]	= { ' ', '|', ' ', '\0' };
154 Char STRstar[]          = { '*', '\0' };
155 Char STRstatus[]        = { 's', 't', 'a', 't', 'u', 's', '\0' };
156 Char STRsymcent[]       = { '%', ' ', '\0' };
157 Char STRsymhash[]       = { '#', ' ', '\0' };
158 Char STRterm[]          = { 't', 'e', 'r', 'm', '\0' };
159 Char STRthen[]		= { 't', 'h', 'e', 'n', '\0' };
160 Char STRtilde[]		= { '~', '\0' };
161 Char STRtime[]		= { 't', 'i', 'm', 'e', '\0' };
162 Char STRtmpsh[]         = { '/', 't', 'm', 'p', '/', 's', 'h', '\0' };
163 Char STRunalias[]       = { 'u', 'n', 'a', 'l', 'i', 'a', 's', '\0' };
164 Char STRuser[]          = { 'u', 's', 'e', 'r', '\0' };
165 Char STRverbose[]       = { 'v', 'e', 'r', 'b', 'o', 's', 'e', '\0' };
166 Char STRwordchars[]	= { 'w', 'o', 'r', 'd', 'c', 'h', 'a', 'r', 's', '\0' };
167