Research V7 development
[unix-history] / usr / src / cmd / sh / msg.c
CommitLineData
7c658c65
B
1#
2/*
3 * UNIX shell
4 *
5 * S. R. Bourne
6 * Bell Telephone Laboratories
7 *
8 */
9
10
11#include "defs.h"
12#include "sym.h"
13
14MSG version = "\nVERSION sys137 DATE 1978 Nov 6 14:29:22\n";
15
16/* error messages */
17MSG badopt = "bad option(s)";
18MSG mailmsg = "you have mail\n";
19MSG nospace = "no space";
20MSG synmsg = "syntax error";
21
22MSG badnum = "bad number";
23MSG badparam = "parameter not set";
24MSG badsub = "bad substitution";
25MSG badcreate = "cannot create";
26MSG illegal = "illegal io";
27MSG restricted = "restricted";
28MSG piperr = "cannot make pipe";
29MSG badopen = "cannot open";
30MSG coredump = " - core dumped";
31MSG arglist = "arg list too long";
32MSG txtbsy = "text busy";
33MSG toobig = "too big";
34MSG badexec = "cannot execute";
35MSG notfound = "not found";
36MSG badfile = "bad file number";
37MSG badshift = "cannot shift";
38MSG baddir = "bad directory";
39MSG badtrap = "bad trap";
40MSG wtfailed = "is read only";
41MSG notid = "is not an identifier";
42
43/* built in names */
44MSG pathname = "PATH";
45MSG homename = "HOME";
46MSG mailname = "MAIL";
47MSG fngname = "FILEMATCH";
48MSG ifsname = "IFS";
49MSG ps1name = "PS1";
50MSG ps2name = "PS2";
51
52/* string constants */
53MSG nullstr = "";
54MSG sptbnl = " \t\n";
55MSG defpath = ":/bin:/usr/bin";
56MSG colon = ": ";
57MSG minus = "-";
58MSG endoffile = "end of file";
59MSG unexpected = " unexpected";
60MSG atline = " at line ";
61MSG devnull = "/dev/null";
62MSG execpmsg = "+ ";
63MSG readmsg = "> ";
64MSG stdprompt = "$ ";
65MSG supprompt = "# ";
66MSG profile = ".profile";
67
68
69/* tables */
70SYSTAB reserved {
71 {"in", INSYM},
72 {"esac", ESSYM},
73 {"case", CASYM},
74 {"for", FORSYM},
75 {"done", ODSYM},
76 {"if", IFSYM},
77 {"while", WHSYM},
78 {"do", DOSYM},
79 {"then", THSYM},
80 {"else", ELSYM},
81 {"elif", EFSYM},
82 {"fi", FISYM},
83 {"until", UNSYM},
84 { "{", BRSYM},
85 { "}", KTSYM},
86 {0, 0},
87};
88
89STRING sysmsg[] {
90 0,
91 "Hangup",
92 0, /* Interrupt */
93 "Quit",
94 "Illegal instruction",
95 "Trace/BPT trap",
96 "IOT trap",
97 "EMT trap",
98 "Floating exception",
99 "Killed",
100 "Bus error",
101 "Memory fault",
102 "Bad system call",
103 0, /* Broken pipe */
104 "Alarm call",
105 "Terminated",
106 "Signal 16",
107};
108
109MSG export = "export";
110MSG readonly = "readonly";
111SYSTAB commands {
112 {"cd", SYSCD},
113 {"read", SYSREAD},
114/*
115 {"[", SYSTST},
116*/
117 {"set", SYSSET},
118 {":", SYSNULL},
119 {"trap", SYSTRAP},
120 {"login", SYSLOGIN},
121 {"wait", SYSWAIT},
122 {"eval", SYSEVAL},
123 {".", SYSDOT},
124 {"newgrp", SYSLOGIN},
125 {readonly, SYSRDONLY},
126 {export, SYSXPORT},
127 {"chdir", SYSCD},
128 {"break", SYSBREAK},
129 {"continue", SYSCONT},
130 {"shift", SYSSHFT},
131 {"exit", SYSEXIT},
132 {"exec", SYSEXEC},
133 {"times", SYSTIMES},
134 {"umask", SYSUMASK},
135 {0, 0},
136};