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