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